Skip to content
This repository has been archived by the owner on Dec 31, 2020. It is now read-only.

Is there a way to add CKEditor plugins? #6

Open
FollowSteph opened this issue Jul 29, 2017 · 2 comments
Open

Is there a way to add CKEditor plugins? #6

FollowSteph opened this issue Jul 29, 2017 · 2 comments

Comments

@FollowSteph
Copy link

FollowSteph commented Jul 29, 2017

For example I'd like to install this plugin but can't seem to find any way to do so...

@wojciech-marciniak
Copy link

wojciech-marciniak commented Aug 14, 2017

Well, this should work:

CKEditorConfig ckEditorConfig = new CKEditorConfig();
ckEditorConfig.addToExtraPlugins(<plugin-name>");

But this add-on seems to try pulling extra plugins from non-existing URL's. such as http://cdn.ckeditor.com/4.6.2/standard/plugins/font/plugin.js

For extra plugins there should be standard-all in the address, eg.:
http://cdn.ckeditor.com/4.6.2/standard-all/plugins/font/plugin.js

@wojciech-marciniak
Copy link

wojciech-marciniak commented Aug 14, 2017

I found a workaround.
First, download the plugin and put all files (i.e. plugin folder) somewhere under webapp
Before the code above, i.e. before CKEditorConfig instantiation add following:

JavaScript.getCurrent().execute("CKEDITOR.plugins.addExternal( '<plugin-name>', '<path-to-plugin-folder', 'plugin.js' );");

Note that path-to-plugin-folder must be absolute (start with a slash), but in client context, i.e. relative to webapp

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants