X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/73894afa5c6ed0829890f129def7e85540e3366c..6c3dfb35e4a92d05de9ffcfd7d6e23a9a9cb32fe:/modules/visualEditor.transformations.js?ds=sidebyside 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'));