How to add FCK Editor to a user control

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.
1/9/2010 1:02:24 AM
Gravatar
Total Posts 19

How to add FCK Editor to a user control

I've added this line to my user control

<mpe:EditorControl id="MyEditor" runat="server"></mpe:EditorControl>

and it displays the editor, but it only has one toolbar.  If I add an HTML Content featue to the page, the fck editor has 3 toolbars.  How can I get the fck editor to display 3 toolbars?

1/9/2010 9:24:23 AM
Gravatar
Total Posts 18439

Re: How to add FCK Editor to a user control

In the code for your user control add

using mojoPortal.Web;
using mojoPortal.Web.Editor;

in the OnInit add:

SiteUtils.SetupEditor(MyEditor);

and in page load or a method called from page load, set the toolbar like this:

MyEditor.WebEditor.ToolBar = ToolBar.FullWithTemplates;

For any issue like this, just look at code for existing features that do things like you want to do.

Hope it helps,

Joe

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