如何禁用在Fckeditor中自動添加<p></p>
標籤。禁用在fckeditor中添加<p></p>標籤
當我試圖從FCKeditor的任何職位數據,它給我裹在
我如何刪除/提前任何建議禁用這些<p></p>
感謝和應答
如何禁用在Fckeditor中自動添加<p></p>
標籤。禁用在fckeditor中添加<p></p>標籤
當我試圖從FCKeditor的任何職位數據,它給我裹在
我如何刪除/提前任何建議禁用這些<p></p>
感謝和應答
太數據晚了,但會幫助其他人通過搜索引擎到達這個頁面,就像我找到它一樣。
<?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/
添加到前面的答案,如果你使用的ColdFusion的富文本區域(使用方法FCKeditor),您可以通過在fckconfig.js
設置
EnterMode
到br
禁用<p>
標籤這是類似於這個問題http://stackoverflow.com/questions/3503655/fckeditor-displays-the-formating-characters-along-with-text – Mac 2010-08-27 10:21:15