From: Alexander Ebert Date: Sat, 20 Aug 2016 10:30:47 +0000 (+0200) Subject: Fixed caret position when inserting quotes and shortly after X-Git-Tag: 3.0.0_Beta_1~641 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4d71a855ac7f18a2201cf1b8122caa339c0ee4ed;p=GitHub%2FWoltLab%2FWCF.git Fixed caret position when inserting quotes and shortly after --- 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(); }, /**