I'm using the tinymce-rails
in my Ruby on Rails application and I wanted to add syntax highlighting to TinyMCE then i found this plugin https://github.com/grena/codehighlighting-for-TinyMCE and added it to app/assets/javascript/tinymce/codehighlighting
. also added to tinymce.yml
like this:
theme_advanced_buttons3_add:
- codehighlighting
plugins:
- codehighlighting
but when I load the view with the form with tinymce I get:
TypeError: 'undefined' is not an object (evaluating 'ed.onNodeChange.add')
Did I something wrong ? or the plugin is not up to date?