From 4d71a855ac7f18a2201cf1b8122caa339c0ee4ed Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sat, 20 Aug 2016 12:30:47 +0200 Subject: [PATCH] Fixed caret position when inserting quotes and shortly after --- .../install/files/js/WoltLabSuite/Core/Ui/Redactor/Quote.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Redactor/Quote.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Redactor/Quote.js index 44409166e9..b13726f0b5 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Redactor/Quote.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Redactor/Quote.js @@ -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(); }, /** -- 2.20.1