Fixed manually inserted carets to be ignored
authorAlexander Ebert <ebert@woltlab.com>
Fri, 16 Sep 2016 14:26:42 +0000 (16:26 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 16 Sep 2016 14:26:42 +0000 (16:26 +0200)
wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabCaret.js

index dbf48ccb2714f679b3fd6e980f2c8d28788f1f62..351c3ef0459a5298ea80d1f01478a9e9d8eb0c0b 100644 (file)
@@ -108,7 +108,7 @@ $.Redactor.prototype.WoltLabCaret = function() {
                        
                        var mpRestore = this.selection.restore;
                        this.selection.restore = (function () {
-                               if (internalRange) {
+                               if (internalRange && elBySel('.redactor-selection-marker', this.$editor[0]) === null) {
                                        restoreRange();
                                        
                                        if (selection.rangeCount && this.utils.isRedactorParent(selection.getRangeAt(0).commonAncestorContainer)) {