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