1
我有我的配置如下:如何防止CKEditor将内联高度,宽度样式添加到img标签?
config.allowedContent = true;
config.disallowedContent = 'img {width,height}';
然而,当添加图像,保存表单,并查看生成的HTML,我看到:基于所有的文档
<img src="/uploads/ckeditor/pictures/759/image.jpg" style="width: 227px; height: 300px;">
我读过,and answers I've seen on SO,这两个配置行应该照顾它,但他们不。
嗯,我通读了这些文档,但没有意识到'allowedContent = true'行将不得不在'disallowedContent'语句按照我的意愿工作之前被删除。 – croceldon