TinyMCE 和 TradingEye - 在内容中呈现的 HTML 标签
我在 Trading Eye 安装中安装了 TinyMCE,而不是默认的 FCKEditor,但是当您在文本区域中输入任何内容并单击更新时,前端编辑器包含
标签,HTML 编辑器包含 < code>
<p>,这意味着在网站本身上查看内容时,标签
将呈现为文本而不是 HTML。请问各位有办法解决这个问题吗?
我的 TinyMCE 初始化代码是:
tinyMCE.init({
// General options
mode : "specific_textareas",
editor_selector : "mainDescription",
theme : "advanced",
plugins : "autolink,lists,pagebreak,style,layer,table,advhr,advimage,advlink,inlinepopups,insertdatetime,preview,contextmenu,paste,directionality,fullscreen,noneditable,nonbreaking,wordcount,advlist",
// Theme options
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,cut,copy,paste,pastetext,pasteword,|,bullist,numlist,|,undo,redo,|,link,unlink,code",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
theme_advanced_buttons4 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true
});
先谢谢大家了。 :)
I have TinyMCE installed in a Trading Eye installation instead of the default FCKEditor but when you enter anything in to the textareas and click update, the front end editor contains <p>
tags and the HTML editor contains <p><p>
, meaning when viewing the content on the site itself, the
tags are rendered as text and not HTML. Is there anyway to fix this issue please guys.
My TinyMCE init code is:
tinyMCE.init({
// General options
mode : "specific_textareas",
editor_selector : "mainDescription",
theme : "advanced",
plugins : "autolink,lists,pagebreak,style,layer,table,advhr,advimage,advlink,inlinepopups,insertdatetime,preview,contextmenu,paste,directionality,fullscreen,noneditable,nonbreaking,wordcount,advlist",
// Theme options
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,cut,copy,paste,pastetext,pasteword,|,bullist,numlist,|,undo,redo,|,link,unlink,code",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
theme_advanced_buttons4 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true
});
Thanks in advance guys. :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论