jQuery TinyMCE with wordcount plugin -
i'm trying "wordcount" plugin working tinymce jquery. i'm not using other tinymce plugins @ moment. based on limited tinymce documentation i've been able find, should straightforward option gets added tinymce init, config not loading @ all. i've searched high , low tips might problem, cannot find anything. (i'm aware of how terrible documentation tinymce is)
the form being rendered rails 3.2.12, jquery plugin tinymce included in asset pipeline in application.js file, , i'm using following coffeescript code init tinymce editor:
$('main_form').find('textarea.wysiwig').tinymce script_url: '/assets/tinymce/tiny_mce.js', plugins: "wordcount", content_css : '/assets/editor.css', theme : "advanced", theme_advanced_buttons1 : "bold,italic,bullist,numlist", theme_advanced_buttons2 : "wordcount", theme_advanced_buttons3 : "", valid_elements: "strong/b,em/i,ol,ul,li,br"
i've included wordcount in second button set in order try isolate happening, produces following js error within tinymce: "uncaught typeerror: cannot read property 'button' of undefined" (i'm using chrome test , editor works fine without plugin option)
any pointers on try or whether doesn't work great hear.
wordcount
not have button. if have loaded in plugin config setting tinymce show number of words in html element below editor.
Comments
Post a Comment