我已经安装了tinymce。基本上,当我进入我的 cms 时,我会进行更改。例如,使文本变为红色。在编辑页面中它工作正常,但是当我进入我的网站时,没有出现更改。此外,当我在我的 cms 中单击“提交”然后重新编辑内容(通过单击编辑)时,更改就消失了。好像我从未尝试过改变任何东西。我是一名集成商(因为我刚刚开始),而不是一名程序员,所以我很难理解我缺少什么或我做错了什么。
编辑:我可以使用粗体工具并且工作正常。但是,例如着色似乎不起作用。我的文字不会保持红色:(
这是我在编辑页面上的代码:
<head>
<script src="../tinymce/jscripts/tiny_mce/tiny_mce_src.js"></script>
</head>
<body>
<script>
tinyMCE.init({
// General options
mode : "textareas",
theme : "advanced",
skin : "o2k7",
plugins : "autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,inlinepopups,autosave",
// Theme options
theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak,restoredraft",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true,
});
</script>