From: Aleksander Ɓukasz Date: Sat, 27 Apr 2013 17:17:29 +0000 (+0200) Subject: Visual editor - stop supporting 'document' node X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/537ad2700bd639ecaaee4f280811c29d193494a3?ds=inline Visual editor - stop supporting 'document' node 'document' doesn't exist in wlxml --- diff --git a/editor.css b/editor.css index a8470f7..11cf5bd 100644 --- a/editor.css +++ b/editor.css @@ -320,7 +320,7 @@ span[wlxml-tag] { font-style: italic; } -[wlxml-tag=document] metadata { +[wlxml-tag] metadata { display:none; } diff --git a/modules/visualEditor.transformations.js b/modules/visualEditor.transformations.js index f9fcb1f..0a8fc2f 100644 --- a/modules/visualEditor.transformations.js +++ b/modules/visualEditor.transformations.js @@ -12,7 +12,7 @@ if(typeof module !== 'undefined' && module.exports) { var toret = $('
'); toret.append(inner); - var toBlock = ['div', 'document', 'section', 'header']; + var toBlock = ['div', 'section', 'header']; var toInline = ['aside', 'span']; var transform = function(tags, replacingTagName) {