[xwiki-devs] How to enable asome the formatting/editing features of CKEditor which are not enabled by default?
Right now XWiki CKEditor looks like http://ckeditor.com/demo#standard . I need at least `justify text` feature. And it would be great if I can make it something like http://ckeditor.com/demo#full or just find a way how to customized it. I saw `Configure the editor from the administration` is a future task , but maybe there is a way to do it with java or velocity? -- View this message in context: http://xwiki.475771.n2.nabble.com/How-to-enable-asome-the-formatting-editing... Sent from the XWiki- Dev mailing list archive at Nabble.com.
On Tue, Apr 5, 2016 at 6:27 PM, abtv <[email protected]> wrote:
Right now XWiki CKEditor looks like http://ckeditor.com/demo#standard . I need at least `justify text` feature. And it would be great if I can make it something like http://ckeditor.com/demo#full or just find a way how to customized it. I saw `Configure the editor from the administration` is a future task , but maybe there is a way to do it with java or velocity?
For now you have two options: (1) Edit the CKEditor.EditSheet page in object mode and modify the configuration https://github.com/xwiki-contrib/application-ckeditor/blob/master/ui/src/mai... . Check the 'removePlugins' property. Of course, be aware that your changes could generate a merge conflict on the next upgrade of the CKEditor extension. (2) Extend / Overwrite the CKEditor configuration from JavaScript (e.g. from a JSX that is loaded on every page). See http://jira.xwiki.org/browse/CKEDITOR-46?focusedCommentId=90672&page=com.atl... but you need XWiki 8.1M1 (otherwise you need to back-port http://jira.xwiki.org/browse/XWIKI-13252 ). In the future I plan to move the editor configuration in a separate page that is easier to modify, and to create an administration section for it. Hope this helps, Marius
-- View this message in context: http://xwiki.475771.n2.nabble.com/How-to-enable-asome-the-formatting-editing... Sent from the XWiki- Dev mailing list archive at Nabble.com. _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
participants (2)
-
abtv -
Marius Dumitru Florea