Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing API to add custom CKEditor plugins through AlloyEditor #296

Closed
dpobel opened this issue Jul 23, 2015 · 2 comments
Closed

Missing API to add custom CKEditor plugins through AlloyEditor #296

dpobel opened this issue Jul 23, 2015 · 2 comments

Comments

@dpobel
Copy link
Contributor

dpobel commented Jul 23, 2015

In my project I need to add one (for now :)) custom plugin to CKEditor. If I want to inject it properly through AlloyEditor, I have to repeat the default plugin list and add mine with something like:

AlloyEditor.editable('editable', {
    extraPlugins: 'uicore,selectionregion,dragresize,addimages,placeholder,tabletools,tableresize,autolink,myplugin'
});

which is of course not very nice. Maybe AlloyEditor.Core could have another attribute (customExtraPlugins for instance) so I could write something like:

AlloyEditor.editable('editable', {
    customExtraPlugins: 'myplugin'
});

to get the same result. (I assume that having to remove a plugin from the current extraPlugins default value is not something very usual).

@ipeychev
Copy link
Contributor

We were discussing this for a long time and we haven't found a good enough API. The easiest way still is:

AlloyEditor.editable('editable', {
    extraPlugins: AlloyEditor.Core.ATTRS.extraPlugins.value + ',myplugin'
});

@dpobel
Copy link
Contributor Author

dpobel commented Jul 23, 2015

Indeed not very handy but that does the job, thanks for the tip :)

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

No branches or pull requests

2 participants