Make sure to update $JSPWiki_Home/templates/<template-dir>/editor/CKeditor.jsp
/* local download of CKeditor TemplateManager.addResourceRequest( context, TemplateManager.RESOURCE_SCRIPT, context.getURL( WikiContext.NONE, "scripts/ckeditor/ckeditor.js" ) ); */ /* Use CKEditor from a CDN */ TemplateManager.addResourceRequest( context, TemplateManager.RESOURCE_SCRIPT, "//cdn.ckeditor.com/4.5.1/standard/ckeditor.js" );
The CKeditor.jar contains the JSPWiki module definitions. This is needed for JSPWiki to recognize the editor, and add a Editor dropdown list to the UserPreferences page. Create a directory with following structure: and create the jspwiki_module.xml file.
/CKeditor /ini jspwiki_module.xml
<?xml version="1.0" encoding="UTF-8"?> <modules> <editor name="CKeditor"> <author>brushed</author> <path>editors/CKeditor.jsp</path> <minVersion>2.10.2</minVersion> </editor> </modules>
Now generate CKeditor.jar or download the file attached to this page and place it in your $JSPWiki_Home/WEB-INF/lib/ directory.
$$> jar cvf CKeditor.jar ini added manifest adding: ini/(in = 0) (out= 0)(stored 0%) adding: ini/jspwiki_module.xml(in = 306) (out= 201)(deflated 34%)
You can check the contents of the jar like so:
$$> jar tf CKeditor.jar META-INF/ META-INF/MANIFEST.MF ini/ ini/jspwiki_module.xml
That's it!
Go ahead and (re)start JSPWiki and you should see CKEditor as an option on the Editor dropdown list found in the UserPreferences.