From: Alexander Ebert Date: Mon, 19 Dec 2016 16:35:14 +0000 (+0100) Subject: Fixed inline format being stripped on return X-Git-Tag: 3.0.0_RC_2~12 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=48051d7d44e5fdeeb6b8df49f3827c77a8638b8e;p=GitHub%2FWoltLab%2FWCF.git Fixed inline format being stripped on return --- diff --git a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabKeydown.js b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabKeydown.js index 1142373e87..97298981b9 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabKeydown.js +++ b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabKeydown.js @@ -109,6 +109,9 @@ $.Redactor.prototype.WoltLabKeydown = function() { } // remove inline tags in new-empty paragraph + /* + WoltLab modification: preserve inline tags + setTimeout($.proxy(function () { var inline = this.selection.inline(); if (inline && this.utils.isEmpty(inline.innerHTML)) { @@ -131,6 +134,7 @@ $.Redactor.prototype.WoltLabKeydown = function() { } }, this), 1); + */ }).bind(this); this.keydown.onEnter = (function(e) {