97
Views
6
Comments
Solved
[CKEditor] Config on CKEditor.Reactive
Question
Forge component by Matthias Preuter
29
Published on 25 Aug 2020

Hi all, 

I have some problem with config the CKEditor. I pass this config text into the config parameter, but nothing happen.


demo.Config.txt

Staff
Rank: #186
Solution

Parko Cham wrote:

Amreen wrote:

Hi Parko Cham,

Can you tell me in which type of app you are trying this Traditional or React?

What extra features you are trying in this ?


Please find the oml for refrence.

hope this will help you


Regards,

Amreen



I am try to config on React.Simply wants to remove some unwanted tools and add a word counting function.

Hello Parko,


Hope you are doing well.


Related to your question, did you use the demo module and perform the changes there?

You should be able to remove those elements by removing them from the toolbar definition or by using the property "removeButtons" in the configuration.

Additionally, I was able to use your configuration by removing the comments inside of the JSON and correct the last comma inside the wordcount configuration.

"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' ] }
    ],

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: {
    showParagraphs: true,
    showWordCount: true,
    showCharCount: true,
    countSpacesAsChars: true,
    countHTML: false,
    maxWordCount: -1,
    maxCharCount: -1
}"


If you have further questions, please let me know.

mvp_badge
MVP
Rank: #114

Hi Parko,

Your config json is not valid Plese check once and make sure that you set inputid to a text area not input.


Rank: #365

Hi Parko Cham,

Can you tell me in which type of app you are trying this Traditional or React?

What extra features you are trying in this ?


Please find the oml for refrence.

hope this will help you


Regards,

Amreen


Ckeditordemo.oml