1
0
mirror of https://github.com/flarum/core.git synced 2025-10-14 08:24:28 +02:00
Files
php-flarum/js/src/common
Alexander Skvortsov 9ee3cd6a18 Fix insertText
In dd8323ee36, insertText was modified from the original to work with reply mentioning. This was done due to a misunderstanding of the API: the selection range isn't the selection to replace, but rather the final selection state after replacing the *current* selection with the text. This commit restores the original, correct implementation of insertText and instead adjusts the `insertBetween`method of BasicEditorDriver to set selection state before executing `insertText`.

Fixes https://github.com/flarum/core/issues/2877
2021-05-18 01:37:19 -04:00
..
2020-07-24 23:51:44 +02:00
2021-05-17 00:02:21 +01:00
2021-05-18 01:37:19 -04:00
2021-05-07 12:29:10 -04:00
2020-09-23 22:40:37 -04:00
2021-05-10 21:06:40 +01:00
2020-09-23 22:40:37 -04:00
2020-09-23 22:40:37 -04:00
2020-09-23 22:40:37 -04:00
2021-05-10 17:54:58 -04:00