Page 1 of 1

The right way to add a plugin to ckeditor

Posted: 17 Jun 2016, 11:40
by TM4rkuS
Hi everyone,

I was just wondering what the right way to add a plugin like autosave to the pe:ckeditor would be. The solution I found was to open the resources-ckeditor-6.0.0.jar file with 7zip for example and just add the plugin to the folder META-INF\resources\primefaces-extensions\ckeditor\plugins. But that will become a cumbersome task any time the resources-ckeditor gets updated. Is there any other solution that doesn't include manually changing the .jar file?

Thanks!

Re: The right way to add a plugin to ckeditor

Posted: 06 Feb 2017, 00:09
by ozwolverine
Hello Markus, did you get any solution to this task?
It would be interesting to now it.
Regards,

Re: The right way to add a plugin to ckeditor

Posted: 06 Feb 2017, 17:20
by Melloware
Unfortunately I don't think there is an "easy" or absolutely "correct" way to add a plugin to CKEditor.

Re: The right way to add a plugin to ckeditor

Posted: 07 Feb 2017, 03:56
by ozwolverine
Thanks Melloware,

I tried to install an already developed plugin from this manual: "https://sourcesup.renater.fr/wiki/chain ... log_plugin", but I'm not able to make it work. I downloaded all assets, insert into main page, but, I only get my ckeditor as I had it before the plugin. Even though, just to check it out, I did changed icon image for an standard button: "iframe", but it doesn't change.

I'm deploying ckeditor in a JSF Web Application, I have deleted cache, and so on, but nothing seems to work, what could it be?

Thanks a lot.

Re: The right way to add a plugin to ckeditor

Posted: 07 Feb 2017, 14:03
by Melloware
It is the nature of how the PE CKEditor component works. There is a lot of magic to properly serve resources and configure the CKEditor.

I don't think what you are doing will ever work, you will have to hack the PrimeFaces Extensions component yourself to add a new plugin.