1
0
mirror of https://github.com/flarum/core.git synced 2025-07-09 19:06:23 +02:00
Files
php-flarum/js
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
..
2021-05-17 00:29:54 +00:00
2021-05-18 01:37:19 -04:00
2021-05-15 20:11:38 -04:00
2021-05-15 20:11:38 -04:00