Using the Preview Add-on for Ckeditor

13 views
Skip to first unread message

David Williams

unread,
Mar 8, 2016, 1:41:20 PM3/8/16
to rubyonra...@googlegroups.com
I have the 'ckeditor' gem installed, but I'm trying to also add a
preview pane for users to see the output of their HTML
document/formatting. The gem's documentation tells you everything but
how to add new plugins.

http://ckeditor.com/addon/preview

https://github.com/galetahub/ckeditor

Can you share with me your approach if you've used the gem before?

Adding config.extraPlugins = 'preview' to 'ckeditor.rb' initializers
doesn't work.

--
Posted via http://www.ruby-forum.com/.

David Williams

unread,
Mar 8, 2016, 3:40:46 PM3/8/16
to rubyonra...@googlegroups.com
I went into the gem's directory to add a plugins folder
app/assets/javascript/ckeditor/plugins.... I then added preview.js to
it. Afterwards, I added //= require ckeditor/plugins/preview.js to
ckeditor\application.js. Lastly, I added config.extraPlugins =
'preview'; to config.js. I still don't see the preview button or preview
pane for the gem.
Reply all
Reply to author
Forward
0 new messages