禁用添加

fckeditor 中的标签

发布于 2024-09-11 16:10:22 字数 200 浏览 9 评论 0 原文

如何在 Fckeditor 中禁用自动添加

标签。

当我尝试从 fckeditor 获取任何发布数据时,它会为我提供包含在中的数据

how do i remove/disable those <p></p>

预先感谢您的任何建议和回复

how to disable automatic adding of <p></p> tags in Fckeditor.

When i try to get any post data from fckeditor, it gives me the data wrapped in

how do i remove/disable those <p></p>

Thanks in advance for any suggestions and reply

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

滴情不沾 2024-09-18 16:10:22

为时已晚,但会帮助其他人通过搜索引擎到达此页面,就像我找到的那样。

<?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-从-wrapping-your-content中删除-p-tags/

Too late, but will help others reaching this page via search engines, like I found it.

<?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();
?>

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

千年*琉璃梦 2024-09-18 16:10:22

添加到前面的答案,如果您使用 ColdFusion 富文本区域(使用 fckeditor),您可以通过将 EnterMode 设置为

标签fckconfig.js 中的 >br

Adding to the previous answer, If you're using ColdFusion rich text area (which used fckeditor), you can disable the <p> tags by setting EnterMode to br in fckconfig.js

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文