TinyMCE呈现标题标签

时间:2012-05-22 17:21:04

标签: javascript html tinymce

我正在将旧版本的TinyMCE更新到新版本,因为它修复了一些令人讨厌的错误。不幸的是,TinyMCE现在显然呈现了已编辑文档的标题标签,并将它们添加为页面的新元素。因此原始文件搞砸了,没有经验的用户感到困惑。我该如何关闭此行为?

配置TinyMCE的脚本:

<script language="javascript" type="text/javascript" src="public/script/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
    tinyMCE.init({
        language : "de",
        mode : "textareas",
        theme : "advanced",
        plugins : "table,save,advhr,advimage,advlink,emotions,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen",
        theme_advanced_buttons1_add_before : "save,newdocument,code,separator",
        theme_advanced_buttons1_add : "fontselect,fontsizeselect",
        theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,zoom,separator,forecolor,backcolor",
        theme_advanced_buttons2_add_before: "cut,copy,paste,pastetext,pasteword,separator,search,replace,separator",
        theme_advanced_buttons3_add_before : "tablecontrols,separator",
        theme_advanced_buttons3_add : "emotions,advhr,separator,print,separator,ltr,rtl,separator",
        theme_advanced_toolbar_location : "top",
        theme_advanced_toolbar_align : "left",
        theme_advanced_statusbar_location : "bottom",
        theme_advanced_disable : "help,cleanup,image",
        content_css : 'public/style.css',
        plugi2n_insertdate_dateFormat : "%Y-%m-%d",
        plugi2n_insertdate_timeFormat : "%H:%M:%S",
    });
</script>

0 个答案:

没有答案