[CKEditorForJava] CkEditor for Java config issue

[CKEditorForJava] CkEditor for Java config issue

  
Forge Component
(6)
Published on 2016-12-07 by Huarlem Lima
6 votes
Published on 2016-12-07 by Huarlem Lima

Hi,

I am using the latest version of CKEditorForJava in my web app. The default toolbar I see after adding it is too cluttered for my basic use. I need to remove/hide most of the toolbar buttons and keep it just like the 'Quick Reply' area in OutSystems discussion forums.


I have used many different js configurations in 'config' parameter but none seems to work:

"toolbar:[['Source','-','Bold','Italic','Underline','RemoveFormat','-', 'NumberedList', 'BulletedList', '-', 'Link','Unlink','-','Image']],
toolbarCanCollapse:false, enterMode: CKEDITOR.ENTER_BR, height:250, width:622"


config.toolbar_Basic =
[
['Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink','-','About']
];


CKEDITOR.editorConfig = function( config ) {config.toolbarGroups = [{ name: 'clipboard', groups: [ 'clipboard', 'undo' ] },{ name: 'editing', groups: [ 'find', 'selection', 'spellchecker', 'editing' ] },{ name: 'links', groups: [ 'links' ] },{ name: 'insert', groups: [ 'insert' ] },{ name: 'forms', groups: [ 'forms' ] },{ name: 'tools', groups: [ 'tools' ] },{ name: 'document', groups: [ 'mode', 'document', 'doctools' ] },{ name: 'others', groups: [ 'others' ] },'/',{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi', 'paragraph' ] },{ name: 'styles', groups: [ 'styles' ] },{ name: 'colors', groups: [ 'colors' ] },{ name: 'about', groups: [ 'about' ] }]; config.removeButtons = 'Underline,Subscript,Superscript,Link,Anchor,Unlink,SpecialChar,HorizontalRule,About';};


Could some one help me with this?

The original component is working on java, you can try it.

I am now using the original component on a .net environment. The configuration changes are responsive now.