代码之家  ›  专栏  ›  技术社区  ›  Parag

禁用在fckeditor中添加<p></p>标记

  •  3
  • Parag  · 技术社区  · 15 年前

    如何禁用自动添加 <p></p> Fckeditor中的标记。

    如何删除/禁用这些 <p></p>

    提前感谢您的建议和回复

    2 回复  |  直到 15 年前
        1
  •  6
  •   Tainder Singh    14 年前

    太晚了,但是会帮助其他人通过搜索引擎到达这个页面,就像我找到的一样。

    <?php
    include_once('fckeditor/fckeditor.php');
    $oFCKeditor = new FCKeditor('description');
    $oFCKeditor->BasePath = '/fckeditor/';
    $oFCKeditor->Value = 'some text';
    $oFCKeditor->Config['EnterMode'] = 'br'; // turn off auto <p> tags wrapping content
    $oFCKeditor->Create();
    ?>
    

    http://www.tequilafish.com/2008/09/12/fckeditor-remove-p-tags-from-wrapping-your-content/

        2
  •  0
  •   Vaishak Suresh    12 年前

    <p> 按设置标记 EnterMode br fckconfig.js

    推荐文章