From 537ad2700bd639ecaaee4f280811c29d193494a3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Sat, 27 Apr 2013 19:17:29 +0200 Subject: [PATCH] Visual editor - stop supporting 'document' node 'document' doesn't exist in wlxml --- editor.css | 2 +- modules/visualEditor.transformations.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.20.1