Fixed API call to restore selection
authorAlexander Ebert <ebert@woltlab.com>
Fri, 26 Dec 2014 15:56:10 +0000 (16:56 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 26 Dec 2014 15:56:10 +0000 (16:56 +0100)
wcfsetup/install/files/js/3rdParty/redactor/plugins/wmonkeypatch.js

index 110bee2f5e6cca8ae71b56c3257c47158cf52115..bdacccb90618a53c068b508dc24d85302699df8a 100644 (file)
@@ -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);