Hello,
I am trying to install different plugins for CKEditor in my xwiki. From what I understood from the documentation CKEditor Integration (XWiki.org), I proceeded like that :
- Extract the .war archive (xwiki-platform-distribution-war-14.10.5.war) present in my xwiki folder
- Created the “ckeditorPlugins” folder in the “resources” folder of the war archive
- Downloaded each of the plugins with "nmp pack , extracted them and placed them in folders under the ckeditorPlugins folder
- Make a .war again and replace the old one, restart the wiki entirely
- Added a JavaScript Skin Extension object like that :
require(['deferred!ckeditor'], function(ckeditorPromise) {
ckeditorPromise.done(function(ckeditor) {
ckeditor.plugins.addExternal('pagination', "$xwiki.getSkinFile('ckeditorPlugins/ckeditor-ckeditor5-pagination-40.1.0/ckeditor5-metadata.json')");
ckeditor.plugins.addExternal('page-break', "$xwiki.getSkinFile('ckeditorPlugins/ckeditor-ckeditor5-page-break-40.1.0/ckeditor5-metadata.json')");
ckeditor.plugins.addExternal('export-word', "$xwiki.getSkinFile('ckeditorPlugins/ckeditor-ckeditor5-export-word-40.1.0/ckeditor5-metadata.json')");
ckeditor.plugins.addExternal('export-pdf', "$xwiki.getSkinFile('ckeditorPlugins/ckeditor-ckeditor5-export-pdf-40.1.0/ckeditor5-metadata.json')");
});
});
- Saved this object with the parameters : Use this extension : On this wiki; Parse content : Yes, Caching policy : Long
- Activated the plugins by going in the “Advanced Configuration” of the “WYSIWYG Editor” and adding the line :
config.extraPlugins = 'pagination,page-break,export-word,export-pdf';
Now, when I go to edit a page on my wiki, it loads for forever and prints in the console “Uncaught Error: [CKEDITOR.resourceManager.load] Resource name “pagination” was not found at “/xwiki/skins/flamingo/ckeditorPlugins/ckeditor-ckeditor5-pagination-40.1.0/ckeditor5-metadata.json?t=N1HE””, and I don’t know what to do to make it work, please help !
By the way, in the documentation, the different plugins are in JS, but when downloaded via the ckeditor website they’re a full archive, and apparently the plugin is the “matadata.json” file, so that’s what I referenced to try and make it work.