Ckeditor : 如何在 ckeditor 中使 h3 、 h4 、 h5 等标签不可编辑
对 js 解决方案或 css 开放任何都行
最佳答案
在 config.js 中,使用以下代码定义您希望在 CKEditor 中允许哪些元素(我删除了 h1):
config.format_tags = 'p;h2;h3;h4;h5;h6;pre;address;div'
关于javascript - Ckeditor : How can i make few tags like h3 , h4,h5 在 ckeditor 中不可编辑,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2296557/