Disabled iOS caret position work-around for `<kbd>`
authorAlexander Ebert <ebert@woltlab.com>
Tue, 12 Sep 2017 11:08:04 +0000 (13:08 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 12 Sep 2017 11:08:04 +0000 (13:08 +0200)
wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabInlineCode.js

index d92b71a425c26b48344fa04fb06ada78fe4bb8bd..ce90f6ede8cf39c99c38b78cbfcbcef1715d9ba0 100644 (file)
@@ -33,7 +33,7 @@ $.Redactor.prototype.WoltLabInlineCode = function() {
                                        }
                                        
                                        // fix selection position
-                                       if (node.innerHTML === '\u200B') {
+                                       /*if (node.innerHTML === '\u200B') {
                                                // the caret must be at offset 0 (before the whitespace)
                                                var range = selection.getRangeAt(0);
                                                if (range.collapsed && range.startOffset === 1) {
@@ -41,7 +41,7 @@ $.Redactor.prototype.WoltLabInlineCode = function() {
                                                        
                                                        this.selection.restore();
                                                }
-                                       }
+                                       }*/
                                        
                                        return;
                                }