2
 <!DOCTYPE html PUBLIC "-//W3C//DTD
 XHTML 1.0 Strict//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html
 xmlns="http://www.w3.org/1999/xhtml">
 <head> <title>Full featured
 example</title> <script
 type="text/javascript"
 src="../tiny_mce/tiny_mce.js"></script>
 <script type="text/javascript">
 tinyMCE.init({
     mode : "textareas",
     theme_advanced_buttons1 : "bold,italic,underline,strikethrough,separator,undo,redo,separator,bullist,numlist,separator,cut,copy,paste,separator,link,unlink,separator,code,separator,image,formatselect",
     theme_advanced_buttons2 : "",
     theme_advanced_buttons3 : "",
     plugins : "imagemanager", 
     document_base_url : "http://localhost/htmllatest/admin",
     relative_urls : false, 
     content_css : "css/content.css",  relative_urls : false, 
         remove_script_host : false, }); </script> </head> <body> <form
 method="post" action="somepage">
  <textarea name="content"
 style="width:100%">  </textarea>
 </form> </body> </html>

这是我的 tinyeditor 代码。但它不起作用。Firefox ErrorConsole 显示错误 Tinymce 未定义。任何人请告诉我为什么这不起作用

4

4 回答 4

0

插件文件夹中不存在插件图像管理器。删除插件行并修复问题。

于 2012-03-06T17:31:23.910 回答
0

听起来 TinyMCE 的缩小版搞砸了,尝试只加载 tiny_mce_src.js 以确保一切正常...

于 2010-09-07T11:56:45.527 回答
0

首先确保是否tiny_mce.js存在并完全加载。

您可以使用Firebug并查看其“网络”选项卡(此处为屏幕截图)

于 2010-09-07T11:28:06.080 回答
0

听起来 tinyMCE 库尚未包含在您的页面中。检查您的 src 是否正确,并且文件是使用 Firefox 中的 Firebug 之类的东西加载的。

于 2010-09-07T11:28:17.700 回答