CKEDITOR如何为每一行添加跨度

时间:2014-10-27 08:57:51

标签: javascript jquery html ckeditor

我使用ckeditor,我想用span标记包装每一行。 例如,当我在编辑器中输入文本时,我得到:

this is the first line
<br>
this is the second line of text
<br>
and the third one

我希望它默认为:

<span style="font-size:12px;">this is the first line</span>
<br>
<span style="font-size:12px;">this is the second line of text</span>
<br>
<span style="font-size:12px;">and the third one</span>

我知道有一种叫做“dataProcessor”的东西,但我不明白如何使用它。 如果可以将此规则添加到粘贴的文本中,那将更好。

谢谢!

0 个答案:

没有答案