javascript - Textarea of TinyMCE(Rich text editor lib) doesn't show anything -


i confuse how mistake using tinymce. first download http://www.tinymce.com/download/download.php choose tinymce 4.0.3. when finish download have folder tinymce_4.0.3 has folder tinymce_4.0.3\tinymce\js\tinymce copy folder (js/tinymce) website in folder mywebsite.

atlast create test.php file code (i cody http://www.tinymce.com/tryit/full.php)

<html> <head> <script type="text/javascript" src="js/tinymce/tinymce.min.js"></script> <script type="text/javascript"> tinymce.init({     selector: "textarea",     theme: "modern",     plugins: [         "advlist autolink lists link image charmap print preview hr anchor pagebreak",         "searchreplace wordcount visualblocks visualchars code fullscreen",         "insertdatetime media nonbreaking save table contextmenu directionality",         "emoticons template paste textcolor moxiemanager"     ],     toolbar1: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",     toolbar2: "print preview media | forecolor backcolor emoticons",     image_advtab: true,     templates: [         {title: 'test template 1', content: 'test 1'},         {title: 'test template 2', content: 'test 2'}     ] }); </script> </head> <body> <form method="post" action="somepage">     <textarea name="content" style="width:100%"></textarea> </form> </body> </html> 

but when open url localhost/mysite/test.php nothing show. figure out problem occur me?

many thanks.

oh found problem because missing plugin. following code tinymce website, last plugin moxiemanager not in package free download why above code can't show anything.

plugins: [     "advlist autolink lists link image charmap print preview hr anchor pagebreak",     "searchreplace wordcount visualblocks visualchars code fullscreen",     "insertdatetime media nonbreaking save table contextmenu directionality",     "emoticons template paste textcolor moxiemanager" ], 

for solve problem remove moxiemanager.

thanks everyone.


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -