如何<p></p>在Fckeditor中禁用自动添加标签.
当我试图从fckeditor获取任何帖子数据时,它会给我包含的数据
我该如何删除/禁用它们<p></p>
提前感谢任何建议和回复
小智 6
太晚了,但会帮助其他人通过搜索引擎到达此页面,就像我发现的那样.
<?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();
?>
Run Code Online (Sandbox Code Playgroud)
请参阅http://www.tequilafish.com/2008/09/12/fckeditor-remove-p-tags-from-wrapping-your-content/