Description
Load the CKEditor using:
{{velocity}} #set ($editedContent = '<h1>Hi there!</h1><p>This is a test.</p>') #set ($syntax = $services.rendering.resolveSyntax('html/5.0')) {{html clean="false"}} $!services.edit.syntaxContent.wysiwyg($editedContent, $syntax, { 'id': 'test', 'name': 'test' }) {{/html}} {{/velocity}}
On a page that has XWiki 2.1 syntax. Then switch to Source. You get:
= Hi there! = This is a test.
While it should have been something like:
<h1 id="HHithere21" class="wikigeneratedid"><span>Hi there!</span></h1><p>This is a test.</p>
The problem is that even if we specify html/5.0 when loading the editor, it still using the syntax of the current document.