From: Aleksander Ɓukasz Date: Thu, 18 Apr 2013 12:45:26 +0000 (+0200) Subject: Visual editor: dropping translation of wlxml 'div' tag to 'block' tag X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/b193de5bbfb1c96da0bb9a5398eb2a11b094017a?ds=sidebyside Visual editor: dropping translation of wlxml 'div' tag to 'block' tag --- diff --git a/modules/visualEditor.transformations.js b/modules/visualEditor.transformations.js index 2edf3d0..7374f2e 100644 --- a/modules/visualEditor.transformations.js +++ b/modules/visualEditor.transformations.js @@ -20,8 +20,7 @@ if(typeof module !== 'undefined' && module.exports) { tagName = tagName.toLowerCase(); console.log('running ' + tagName); toret.find(tagName).replaceWith(function() { - var suffix = tagName !== 'div' ? tagName : 'block'; - var toret = $('
').attr('wlxml-tag', suffix); + var toret = $('
').attr('wlxml-tag', tagName); var currentTag = $(this); if(currentTag.attr('class')) toret.attr('wlxml-class', currentTag.attr('class'));