1
當我從源代碼視圖切換到wysiwyg時,它剝離了我的h1類和其他內聯東西,我環顧四周,啓用了config.allowedContent = true;在配置文件中,但這並不能解決問題,我該如何解決這個問題?當從源代碼切換到視圖模式時,CKEditor Strips H1類
感謝
當我從源代碼視圖切換到wysiwyg時,它剝離了我的h1類和其他內聯東西,我環顧四周,啓用了config.allowedContent = true;在配置文件中,但這並不能解決問題,我該如何解決這個問題?當從源代碼切換到視圖模式時,CKEditor Strips H1類
感謝
好吧,我找到了解決辦法,在config.js文件中只需添加這行:
CKEDITOR.config.allowedContent = TRUE;
不要添加內部
CKEDITOR.editorConfig =函數(配置){
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';
}的bolean變化;
我正在用config.allowedContent = true添加它;並沒有工作。
在'config.js'文件中設置'config.allowedContent = true'是絕對正確的,但您需要記住清除瀏覽器的緩存。 – Reinmar
我仍然有問題,我清除瀏覽器緩存,但鉻上它仍然剝離標籤,在Firefox上它可以但不鉻,任何想法? – Joricam
也許檢查你使用的是什麼版本... http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-allowedContent 文檔建議它只適用於4.1+ – johnsnails