【问题标题】:CKEditor , how to disable HTML indented formatCKEditor,如何禁用 HTML 缩进格式
【发布时间】:2012-03-16 12:49:29
【问题描述】:

我想问一下是否有办法在CKEditor 中禁用HTML 源代码的缩进格式。我不想格式化 HTML,因为我想将它存储在数据库中,并且不需要额外的字符(换行符和空格)。我只想要没有空格和线条的原始 html。

例如 CKEditor 中的 HTML 输出是

<p>
    test 1</p>
<p>
    test 2</p>
<p>
    test 3</p>

但我需要的是

<p>test 1</p><p>test 2</p><p>test 3</p>

【问题讨论】:

    标签: ckeditor ckeditor.net


    【解决方案1】:

    CKEditor howto 上的此文档展示了如何修改输出的格式,因此您只需指定所需的规则:http://docs.cksource.com/CKEditor_3.x/Howto/FCKeditor_HTML_Output

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-04-28
      • 2011-10-30
      • 1970-01-01
      • 2011-01-27
      • 1970-01-01
      • 2012-04-16
      相关资源
      最近更新 更多