所见即所得在CKEditor -如何禁用/添加模块

WYSIWYG in CKEditor - how to disable/add modules

本文关键字:添加 模块 何禁用 CKEditor 所见即所得      更新时间:2023-09-26

我使用CKEDITOR.replaceAll('wysiwyg');在我的网站上取代格式文本区域所见即所得,但我想禁用一些模块,如斜体字体,链接…请问怎么做?我找不到任何例子。

要禁用这些模块,请在CKEditor的config.js文件中添加以下代码,

config.removeButtons = 'Underline,JustifyCenter';