开发者

Tinymce editor Error

 <!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, 
         remov开发者_如何学Pythone_script_host : false, }); </script> </head> <body> <form
 method="post" action="somepage">
  <textarea name="content"
 style="width:100%">  </textarea>
 </form> </body> </html>

Ths is my code for tinyeditor .But it is not working.Firefox ErrorConsole is showing the error Tinymce is not defined.anybody please tell me why this is not working


First of all make sure whether tiny_mce.js is present and gets loaded at all.

You could use Firebug and look into its "Net" tab (Screenshot here)


Sounds like the tinyMCE library hasn't been included in your page. Check your src's are correct and that the files are loaded using something like Firebug in Firefox.


Sounds like the minified version of TinyMCE is screwed up, try to load only tiny_mce_src.js to make sure everything is alright...


The plugin imagemanager in not there in the plugin folder. Remove plugin line and problem fixed.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜