1134
Views
6
Comments
Configuring CKEditor
Question

I've installed the CKEditor and I have no idea how to configure it's toolbar. When I start looking at the documentation, it tells me to look at a config file in the location where CKEditor was installed.  The thing is, is that I installed it through OutSystems Forge and I don't specify where it gets installed.  OutSystems does all that and I have no idea where the config file is.

Please help me know how to configure the toolbar.

Thanks, Paul

2020-09-11 18-53-44
Stacey Levine

Hi Paul,


You will get the most accurate and best help if you post your question on the CKEditor component itself. that way the author of the forum will be able to help you. I have used it a few times, and I know its a JSON confi for the property of the component, but not sure of the specifics.

2019-05-22 11-30-09
Marcelo Ferreira

Hi Paul,

Check this post.

Regards,

Marcelo

UserImage.jpg
Jessica Lee

I have tried to configure the CKEditor as below but not works.

Please advise how to configure the autoParagraph and enterMode


"height:'140px', 

toolbar:[

    ['Font','FontSize'],

    ['Bold','Italic','Underline'],

    ['NumberedList','BulletedList','-','Outdent','Indent'],

    ['Scayt'],

    ['TextColor','BGColor'],

    ['Image'],

    ['Source']

],

enterMode : CKEDITOR.ENTER_BR,

shiftEnterMode: CKEDITOR.ENTER_P,

autoParagraph: 'false'"

2023-07-11 07-39-05
Luuk van Laarhoven
autoParagraph: false, 
enterMode: 2, 
2024-11-07 03-28-42
Stuart Harris
Champion

Hi Jessica,

Have a look at the CKEditorDemo, it has some examples, here is one of them:

toolbarGroups: [
        { name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
        { name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
        { name: 'editing', groups: [ 'find', 'selection', 'spellchecker', 'editing' ] },
        { name: 'forms', groups: [ 'forms' ] },
        { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
        { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi', 'paragraph' ] },
        { name: 'links', groups: [ 'links' ] },
        { name: 'insert', groups: [ 'insert' ] },
        '/',
        { name: 'styles', groups: [ 'styles' ] },
        { name: 'colors', groups: [ 'colors' ] },
        { name: 'tools', groups: [ 'tools' ] },
        { name: 'others', groups: [ 'others' ] },
        { name: 'about', groups: [ 'about' ] }
    ],

removeButtons: 'Form,Checkbox,Radio,TextField,Textarea,Select,Button,ImageButton,HiddenField,Anchor,Language,BidiRtl,BidiLtr,CreateDiv,Find,Replace,Cut,Copy,Paste,PasteText,PasteFromWord,Templates,Save,NewPage,Preview,Print,Source,SelectAll,Scayt,Subscript,Superscript,RemoveFormat,Flash,Table,HorizontalRule,Smiley,SpecialChar,PageBreak,Iframe,ShowBlocks',


extraPlugins: 'wordcount,notification',


wordcount: {
    // Whether or not you want to show the Paragraphs Count
    showParagraphs: true,

    // Whether or not you want to show the Word Count
    showWordCount: true,

    // Whether or not you want to show the Char Count
    showCharCount: true,

    // Whether or not you want to count Spaces as Chars
    countSpacesAsChars: true,

    // Whether or not to include Html chars in the Char Count
    countHTML: false,
    
    // Maximum allowed Word Count, -1 is default for unlimited
    maxWordCount: -1,

    // Maximum allowed Char Count, -1 is default for unlimited
    maxCharCount: -1,
}
	

I hope this helps!

Kind regards,

Stuart

UserImage.jpg
Seow Sean Tan

If you are using CKEditor 4 like me, here is how to configure the toolbar.


1. Click on the CKEditor widget attached to the desired input.


2. Under its properties, go to Config and change its code.


3. The code should look as follows (example).

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.