Opened 5 years ago

Closed 5 years ago

#12731 closed Bug (invalid)

Cannot modify CKeditor toolbar in N2CMS

Reported by: hungnguyenphuoc Owned by:
Priority: Normal Milestone:
Component: UI : Toolbar Version: 4.4.4
Keywords: Cc:

Description

I have tried to modify the CKeditor toolbar in N2CMS Local Resources. The purpose is adding the Media button to insert Video object. However, the layout is not changed. It just recognized the uiColor only.

config.toolbar = [ { name: 'document', groups: ['mode', 'document', 'doctools'], items: ['Source', '-', 'Save', 'NewPage', 'Preview', 'Print', '-', 'Templates'] }, { name: 'clipboard', groups: ['clipboard', 'undo'], items: ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo'] }, { name: 'editing', groups: ['find', 'selection', 'spellchecker'], items: ['Find', 'Replace', '-', 'SelectAll', '-', 'Scayt'] }, { name: 'forms', items: ['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'] }, '/', { name: 'basicstyles', groups: ['basicstyles', 'cleanup'], items: ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat'] }, { name: 'paragraph', groups: ['list', 'indent', 'blocks', 'align', 'bidi'], items: ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'BidiLtr', 'BidiRtl', 'Language'] }, { name: 'links', items: ['Link', 'Unlink', 'Anchor'] }, { name: 'insert', items: ['Image', 'Flash', 'Table', 'HorizontalRule', 'Smiley', 'SpecialChar', 'PageBreak', 'Iframe'] }, '/', { name: 'styles', items: ['Styles', 'Format', 'Font', 'FontSize'] }, { name: 'colors', items: ['TextColor', 'BGColor'] }, { name: 'tools', items: ['Maximize', 'ShowBlocks'] }, { name: 'others', items: -? }, { name: 'about', items: About? } ];

Change History (1)

comment:1 Changed 5 years ago by Jakub Ś

Resolution: invalid
Status: newclosed

I'm not familiar with this CMS, and how exactly CKEditor is configured through it but in order to see button in toolbar of standard editor you need to:

  1. Add button name to toolbar - I don't see any new button in code you have provided.
  2. Copy plugin code into plugins folder of CKEditor
  3. Add plugin with http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-extraPlugins.
Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy