javascript - CKEditor 4 Toolbar Definitions -
I have CK editor 4, and want to configure a set of toolbars inline with this document for CK Editor 3 .
Actually I want to set some Toolbar definitions (such as config.toolbar_Email with one toolbar configuration, and config.toolbar_Cmscontent with the second set).
Then when I declare CKEditor on an element, I can specify which toolbar I want to use .. Example:
CKEDITOR.replace ('Editor1', {toolbar: 'email'});
or
CKEDITOR.replace ('editor1', {toolbar: 'cmscontent'});
I can not get this job done in CK Editor 4, and except for the CK Editor 3 documentation, nothing can be found besides this.
Can anyone tell me what it is demoted in V4? Is there another way that I can set my own toolbar definitions?
Jason
The feature is still cached editor 4.x is available in:
CKEDITOR.config.toolbar_MyCustomToolbar = [['bold']]; CKEDITOR.config.toolbar_MyYetAnotherCustomToolbar = [['italic']]; CKEDITOR.replace ('editor1', {toolbar: 'MyCustomToolbar'}); CKEDITOR.replace ('edit2', {toolbar: 'mainyte other custombubble'});
Follow the Read.
Comments
Post a Comment