Closed sarathjasrin closed 6 years ago
Check out this issue - #6
Thanks that worked. So we could send all the configurations mentioned in the documentation via config props.?? right
I tried adding those configs it's working.
<CKEditor config={{
removeButtons: 'Source,Save,Templates,NewPage,Preview,Print,Cut,Copy,Paste,PasteText,PasteFromWord,Find,Replace,Form,Radio,TextField,Textarea,Select,Button,ImageButton,HiddenField,About,ShowBlocks,Font,CopyFormatting,RemoveFormat,Checkbox,CreateDiv,Language,Flash,Iframe',
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' ] }
]
}} />
How to add or remove the toolbar buttons in the editor. I can understand this is a wrapper around the ckeditor. But how we can use native plugin features.
config.toolbar = [ [ 'Source', '-', 'Bold', 'Italic' ] ];