On Fri, Aug 12, 2016 at 4:04 PM, Paul Libbrecht <[email protected]> wrote:
Thank you Marius,
the deferred module loading http://platform.xwiki.org/xwiki/bin/view/DevGuide/JavaScriptAPI# HDeferredDependencyLoading . The ckeditorPromise will be resolved when the editor is available (either in edit mode or anywhere else the editor is loaded). In other words, you don't pull CKEditor, you are notified if someone else pulls it. That has worked very well. you should try the wiki macro approach first. Ok
The wiris editor I'm trying to integrate produces MathML-islands which, currently, gets removed by the rendering conversion.
Is there a good hook at the XWiki or CKEditor level I could bind to, so that I change the content before it gets posted to the conversion? I'd convert the MathML islands to macros which would, depending on the browser, render to MathML or to images.
CKEditor provides http://docs.ckeditor.com/#!/api/CKEDITOR.editor-event-toHtml and http://docs.ckeditor.com/#!/api/CKEDITOR.editor-event-toDataFormat . You could also write a https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwik... that is called on the server side before the HTML is converted to wiki syntax. Hope this helps, Marius
thanks in advance.
Paul _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs