Can not customize CKEditor ToolBar

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
4/13/2018 3:10:44 AM
Gravatar
Total Posts 6

Can not customize CKEditor ToolBar

Hi All

 

When I make changes to the "ckeditor-mojoconfig.js" file for "toolbar_CustomOne" or "toolbar_Custom2", no changes occur. For example, for "toolbar_Full" everything works as it should.

Code for ckeditor

ascx:
<mpe:EditorControl id="comment" runat="server"></mpe:EditorControl>

ascx.cs:

SiteUtils.SetupEditor(comment);
comment.WebEditor.ToolBar = Editor.ToolBar.Custom1;

 

Regards

Alex

4/13/2018 4:56:16 AM
Gravatar
Total Posts 6

Re: Can not customize CKEditor ToolBar

I solved the problem.
The problem was that you need to add a new configuration to the method "private void SetupToolBar(StringBuilder script)" in class "public class CKEditorControl"

For Example:

case ToolBar.Custom1:
                    script.Append(",toolbar:'CustomOne'");
                    break;

By the way, for some reason, configurations Custom1 and Custom2 are initially absent from method "SetupToolBar", but are present in the ToolBar enumeration

Regards
Alex

4/13/2018 3:02:57 PM
Gravatar
Total Posts 91

mojoPortal Hosting & Design @ i7MEDIA!

Re: Can not customize CKEditor ToolBar

Hi Alex,

We've fixed this in the code and it will be in the next release. I'll push to the repo today. There were a couple of things we fixed with the CKeditor control.

Thank you,
Elijah

4/16/2018 4:42:16 AM
Gravatar
Total Posts 6

Re: Can not customize CKEditor ToolBar

That's cool!
Thank you Elijah smiley

Regards
Alex

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