Enabled spellcheck in Chrome for Android again
authorAlexander Ebert <ebert@woltlab.com>
Tue, 17 Jan 2017 19:24:59 +0000 (20:24 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 17 Jan 2017 19:25:08 +0000 (20:25 +0100)
wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabCaret.js

index c6da5149ab9c18551541785c5c7602dd5e6622f8..850028ba1439adf53353a66dadc1b09933bdb018 100644 (file)
@@ -36,17 +36,6 @@ $.Redactor.prototype.WoltLabCaret = function() {
                        this.$editor[0].addEventListener(WCF_CLICK_EVENT, this.WoltLabCaret._handleEditorClick.bind(this));
                        
                        this.WoltLabCaret._initInternalRange();
-                       
-                       require(['Environment'], (function (Environment) {
-                               if (Environment.browser() === 'chrome' && Environment.platform() === 'android') {
-                                       // Chrome for Android exposes falsified keyboard event data, causing
-                                       // quite a few issues with keystrokes such as backspace. Turning off
-                                       // auto-complete works around the issue for now.
-                                       // 
-                                       // https://bugs.chromium.org/p/chromium/issues/detail?id=118639
-                                       elAttr(this.$editor[0], 'autocomplete', 'off');
-                               }
-                       }).bind(this));
                },
                
                paragraphAfterBlock: function (block) {