spohlenz / tinymce-rails

Integration of TinyMCE with the Rails asset pipeline
Other
812 stars 256 forks source link

Cannot load Codesample plugin #200

Open ghost opened 8 years ago

ghost commented 8 years ago

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?

Brotakuu commented 7 years ago

You need to add codesample to your plugins as it is not part of the core.

plugins:
  - image
  - link
  - codesample