From a56d7ab801eabe4667102625e8612e3ba468bead Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 26 Dec 2014 16:56:10 +0100 Subject: [PATCH] Fixed API call to restore selection --- .../files/js/3rdParty/redactor/plugins/wmonkeypatch.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.20.1