From ee17d8b8fafd9451e0d59f0dfc81843d9becf58c Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 18 Dec 2016 13:47:14 +0100 Subject: [PATCH] Edge fails when dealing with custom markers --- .../files/js/WoltLabSuite/Core/Ui/Redactor/Format.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Redactor/Format.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Redactor/Format.js index ea6eaddc5a..417f8cf06e 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Redactor/Format.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Redactor/Format.js @@ -45,8 +45,8 @@ define(['Dom/Util'], function(DomUtil) { else { // removing existing format causes the selection to vanish, // these markers are used to restore it afterwards - markerStart = elCreate('woltlab-tmp-marker'); - markerEnd = elCreate('woltlab-tmp-marker'); + markerStart = elCreate('mark'); + markerEnd = elCreate('mark'); var tmpRange = range.cloneRange(); tmpRange.collapse(true); @@ -219,7 +219,7 @@ define(['Dom/Util'], function(DomUtil) { // search for tags that are still floating around, but are completely empty elBySelAll('span', editorElement, function (element) { if (element.parentNode && !element.textContent.length && element.style.getPropertyValue(property) !== '') { - if (element.childElementCount === 1 && element.children[0].nodeName === 'WOLTLAB-TMP-MARKER') { + if (element.childElementCount === 1 && element.children[0].nodeName === 'MARK') { element.parentNode.insertBefore(element.children[0], element); } -- 2.20.1