我正在使用ckeditor。我想讓用戶使用他們想要的所有內聯樣式。CKEDITOR.config.allowedContent true不起作用
但是,當我使用CKEDITOR.config.allowedContent = true;
,沒有任何變化和ckeditor更改style
名稱與[removed]
。
這裏就是我試圖做的事:
config.js
CKEDITOR.editorConfig = function(config) { };
CKEDITOR.config.allowedContent = true;
我也試過:
CKEDITOR.editorConfig = function(config) {
CKEDITOR.config.allowedContent = true;
};
我清除每次更改後的緩存,但不運氣。當我進入
<p style="text-align: center;"><span style="color:#ff0000">this is for test</span></p>
結果變成:
<p [removed]="color:#ff0000">this is for test</span></p>
我看了很多文章,但仍沒有運氣。有什麼建議麼?
TNX的回答,但沒有任何變化。我使用ckeditor工具欄添加內嵌css,如方向和字體顏色 – msDead