tinymce-rails
tinymce-rails copied to clipboard
Cannot load Codesample plugin
I'm trying to add codesample plugin and load it, but it returns me an error. I've included files prism.js
and prism.css
according to the documentation to the folders app/assets/javascripts/tinymce/plugins/codesample/prism.js
and app/assets/javascripts/tinymce/plugins/codesample/prism.js
respectively, then in my tinymce.yml
I've written
toolbar:
- styleselect | bold italic | undo redo | image | link | codesample
plugins:
- image
- link
and finally required prism.js
and prism.css
in my asset application files, but it returned me an error that it cannot find required files. How should I include codesample plugin properly?
You need to add codesample to your plugins as it is not part of the core.
plugins:
- image
- link
- codesample