如何在Savvy CMS中向ckeditor添加字符

时间:2016-05-31 19:10:33

标签: ckeditor coldfusion-9

我在Savvy CMS安装中向CKEditor 4添加特殊字符时遇到了问题。例如,实体代码代表的土耳其字符:ğışğış被剥离发布内容对象时的富文本。

未公开 enter image description here

公开 enter image description here

HTML标记如下

<style>
  td{width:50px;padding:5px;text-align:center;background-color:#e0e0e0;}
</style>

<p>The Turkish alphabet is a modified version of the Latin alphabet and consists of 29 letters.<br/>
Included are 6 additional letters...</p>

<table>
  <tr>
   <td>&#231;</td>
   <td>&#287;</td>
   <td>&#305;</td>
   <td>&#246;</td>
   <td>&#351;</td>
   <td>&#252;</td>
  </tr>
 </table>

 <p>...while - q, w, x - are excluded.</p>

我找到了CKEditor的config.js文件,并附加了实体代码,如下所示

config.specialChars = ['!', '&quot;'... '&#287;', '&#305;'...];

我也试过

config.extraSpecialChars = ['&#287;'];

但是,在发布对象时仍会剥离特殊字符。 如何配置CKEditor 4以接受其他特殊字符?

1 个答案:

答案 0 :(得分:1)

尝试使用此代替

config.entities_additional = '#287,#305,#351';