How to display multiple ckeditor-textarea in a component with different toolbar?

杀马特。学长 韩版系。学妹 提交于 2019-12-25 03:03:07

问题


I have multiple ckeditor in a component and for some reason i want a textarea-ckeditor to be readonly with some toolbar enabled;

ie: 'print','preview','find', and 'maximize'.

How can i achieve this? i've tried removing the plugins but only success if i alter the config.js which will 'standardize' all my ckeditor.

What i can think is that i need to alter something from this code.

    CKEDITOR.replace('header',{
    width: '100%',
    height: 570});

Thanks in adv..


回答1:


I found the solution but instead of removing the toolbar buttons, i list all the desired buttons as following;

toolbar: [
    { name: 'document', groups: [ 'mode', 'document', 'doctools' ], items: ['-','Preview', 'Print', '-' ] },
    { name: 'editing', groups: [ 'find', 'selection', 'spellchecker' ], items: [ 'Find','-','-' ] },
    { name: 'tools', items: [ 'Maximize'] }
    ]


来源:https://stackoverflow.com/questions/55253579/how-to-display-multiple-ckeditor-textarea-in-a-component-with-different-toolbar

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!