From: Alexander Ebert Date: Sun, 18 Dec 2016 12:47:14 +0000 (+0100) Subject: Edge fails when dealing with custom markers X-Git-Tag: 3.0.0_RC_2~34 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ee17d8b8fafd9451e0d59f0dfc81843d9becf58c;p=GitHub%2FWoltLab%2FWCF.git Edge fails when dealing with custom markers --- 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); }