edit: reenforce xml slash in self-closing elements
authorMischa POSLAWSKY <perl@shiar.org>
Thu, 14 Sep 2017 20:36:08 +0000 (22:36 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 18 Sep 2017 18:21:28 +0000 (20:21 +0200)
Originally disabled to keep in line with legacy html,
but an outdated rule for new contents.

edit.js

diff --git a/edit.js b/edit.js
index 502d2b2f2537af7e96403ae873a98641fd623b95..8cc245c64beeaf907ac16d73c7e843492a9b562e 100644 (file)
--- a/edit.js
+++ b/edit.js
@@ -69,7 +69,7 @@ CKEDITOR.on('instanceCreated', function (event) {
        CKEDITOR.on('instanceReady', function (event) {
                var editor = event.editor;
                var writer = editor.dataProcessor.writer;
-               writer.selfClosingEnd = '>';
+               writer.selfClosingEnd = ' />';
                writer.setRules( 'p', {
                        breakAfterOpen: true,
                        breakBeforeClose: true,