Javascript CKEDITOR如何为每行添加跨距

Javascript CKEDITOR如何为每行添加跨距,javascript,jquery,html,ckeditor,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> &

我使用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>
这是第一行

这是第二行文字
第三个呢
我知道有一种叫做“数据处理器”的东西,但我不知道如何使用它。 如果可以将此规则也添加到粘贴的文本中,则效果会更好


谢谢

这可能会对您有所帮助:谢谢,但没有帮助,因为我已经使用了:“CKEDITOR.ENTER\u BR”,我需要使用它来将行包装到标记中。您为什么要这样做?使用CSS或使用父节点来设置内容的样式不是更容易、更简单吗?因为我有一种数据处理器,可以处理跨标记并相应地调整它们的大小。这是我的第一个想法。无论如何,最终我用另一种方法解决了这个问题,使用父节点,然后给用户一个选项,将字体大小更改为特定的行。无论如何,谢谢你。