tinymce-rails icon indicating copy to clipboard operation
tinymce-rails copied to clipboard

Cannot load Codesample plugin

Open ghost opened this issue 8 years ago • 1 comments

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?

ghost avatar Jul 01 '16 12:07 ghost

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

plugins:
  - image
  - link
  - codesample

Brotakuu avatar Aug 03 '16 20:08 Brotakuu