This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.
Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.
Before posting questions here you might want to review the developer documentation.
Hi,
Using Site Settings in Administration I have changed the editor from FCKEditor to TinyMCE. The TinyMCE is now used in mojoportal's HTML Content module but not in my custom modules.
Is there another setting I should change? Or anywhere I can look for a tweak to make this work?
Thanks, Leah
My setup: - targeting ASP .Net 3.5. - mojoportal version 2.3.3.4 - dev machine is running Windows 2003 Server
Code snippets
<div class="settingrow"> <mp:SiteLabel id="lblDescription" runat="server" ForControl="txtDescription" CssClass="settinglabel" ConfigKey="LabelDescription" ResourceFile="RecluseResources" /> <mpe:EditorControl runat="server" ID="edDescription" ></mpe:EditorControl> </div> private void LoadSettings() { edDescription.WebEditor.ToolBar = mojoPortal.Web.Editor.ToolBar.FullWithTemplates; edDescription.WebEditor.Height = Unit.Pixel(400); edDescription.WebEditor.Width = Unit.Pixel(660); }
<div class="settingrow"> <mp:SiteLabel id="lblDescription" runat="server" ForControl="txtDescription" CssClass="settinglabel" ConfigKey="LabelDescription" ResourceFile="RecluseResources" /> <mpe:EditorControl runat="server" ID="edDescription" ></mpe:EditorControl> </div>
private void LoadSettings() { edDescription.WebEditor.ToolBar = mojoPortal.Web.Editor.ToolBar.FullWithTemplates; edDescription.WebEditor.Height = Unit.Pixel(400); edDescription.WebEditor.Width = Unit.Pixel(660); }
protected override void OnPreInit(EventArgs e) { base.OnPreInit(e); SiteUtils.SetupEditor(edDescription); }
Or you could do it in the OnInit event
Hope it helps,
Joe
Thanks Joe!
That was it. The init was omitted.