它应该是这样的:
<SCRIPT LANGUAGE="JavaScript" SRC="jsp/js/tiny_mce.js">
<SCRIPT LANGUAGE="JavaScript" SRC="jsp/js/tiny_mce_config.js">
然后使用配置文件指定该页面的TinyMCE的偏好。如果你想TinyMCE的更换任何文本框,你需要的偏好:
mode : "textareas",
我的例如整个配置是:
tinyMCE.init({
// General options
mode : "textareas",
theme : "advanced",
plugins : "table,paste,fullscreen",
relative_urls : true,
convert_urls : false,
// So we can put the google maps in the page
extended_valid_elements : "iframe[src|width|height|name|align]",
// Theme options
theme_advanced_buttons1 : "code,|,cut,copy,pastetext,|,link,unlink,anchor,image,charmap,|,fullscreen",
theme_advanced_buttons2 : "bold, italic, underline,|, bullist, numlist,|,outdent,indent,|,formatselect",
theme_advanced_buttons3 : "tablecontrols",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left"
});
我想你应该多一点仔细阅读TinyMCE的文件,这是所有解释。
我想你在“我添加了这一行”之后缺少了一些东西。是的,你需要的不仅仅是tiny_mce.js。 – 2009-12-07 14:32:23
谢谢Wesely。所以,这不仅仅是tiny_mce.js是我们当时需要的。 我会再试一次 – Vani 2009-12-07 14:34:42