Fixed caret position when inserting quotes and shortly after
authorAlexander Ebert <ebert@woltlab.com>
Sat, 20 Aug 2016 10:30:47 +0000 (12:30 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 20 Aug 2016 10:30:56 +0000 (12:30 +0200)
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Redactor/Quote.js

index 44409166e97ab371f79592716bd4e3265a27b2d4..b13726f0b58d3f02a4fbfa04fcbaefaad38224dd 100644 (file)
@@ -96,13 +96,15 @@ define(['Core', 'EventHandler', 'EventKey', 'Language', 'StringUtil', 'Dom/Util'
                        elData(quote, 'link', data.link);
                        
                        if (data.isText) {
+                               this._editor.selection.restore();
                                this._editor.insert.text(data.content);
                        }
                        
                        quote.removeAttribute('id');
                        
                        this._editor.caret.after(quote);
-                       this._editor.selection.save();
+                       
+                       this._editor.buffer.set();
                },
                
                /**