From: Alexander Ebert Date: Fri, 26 Dec 2014 15:56:10 +0000 (+0100) Subject: Fixed API call to restore selection X-Git-Tag: 2.1.0_Beta_3~74 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a56d7ab801eabe4667102625e8612e3ba468bead;p=GitHub%2FWoltLab%2FWCF.git Fixed API call to restore selection --- diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wmonkeypatch.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wmonkeypatch.js index 110bee2f5e..bdacccb906 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wmonkeypatch.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wmonkeypatch.js @@ -475,7 +475,7 @@ RedactorPlugins.wmonkeypatch = function() { var $mpFormat = this.inline.format; this.inline.format = (function(tag, type, value) { if ($.browser.iOS) { - this.wmonkeypatch.restoreSelection(); + this.wutil.restoreSelection(); } $mpFormat.call(this, tag, type, value); @@ -484,7 +484,7 @@ RedactorPlugins.wmonkeypatch = function() { var $mpRemoveStyleRule = this.inline.removeStyleRule; this.inline.removeStyleRule = (function(name) { if ($.browser.iOS) { - this.wmonkeypatch.restoreSelection(); + this.wuil.restoreSelection(); } $mpRemoveStyleRule.call(this, name);