How can you change the content editor used by custom modues?

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.

This forum is for discussing mojoPortal development

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.

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.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
12/6/2010 5:23:22 PM
Gravatar
Total Posts 39

How can you change the content editor used by custom modues?

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);
}

12/7/2010 9:03:23 AM
Gravatar
Total Posts 18439

Re: How can you change the content editor used by custom modues?

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

12/7/2010 4:27:43 PM
Gravatar
Total Posts 39

Re: How can you change the content editor used by custom modues?

Thanks Joe!

 

That was it. The init was omitted.

 

 

You must sign in to post in the forums. This thread is closed to new posts.