Change CKEditor toolbar dynamically

后端 未结 10 1719
猫巷女王i
猫巷女王i 2020-12-09 04:30

How do you change the CKEditor toolbar dynamically (without using a pre-defined toolbar)?

The CKEditor Developer\'s Guide only tells you how to set the toolbar durin

10条回答
  •  抹茶落季
    2020-12-09 05:35

    Following mb21's suggestion I managed to load a new toolbar by reinitialising the whole editor:

    CKEDITOR.instances.editor.destroy();
    CKEDITOR.replace('editor', configWithNewToolbar);
    

提交回复
热议问题