wysiwyg-editor
wysiwyg-editor copied to clipboard
Error with Selection and Pos1
Expected behavior.
When selecting text from lower lines to upper lines, the cursor should always move from the last selected character
Actual behavior.
If a selection exists, the selectionEnd is moved instead of the selectionBegin, even if cursor should move to the left
Steps to reproduce the problem.
- Write Text spreading over multiple lines
- Start selecting Text and move cursor with selection to line above with
SHIFT + ARROW_UP
- Try moving selectionBegin to start of line with
SHIFT + POS1
Editor version.
The earliest version found with this error is 4.0.17, however it also occurs in 4.1.2 and on the Froala homepage
OS.
Windows11
Browser.
Chrome, Firefox and Edge, all latest version
Recording.
https://github.com/froala/wysiwyg-editor/assets/57450375/48175a67-1ad8-4417-a646-db32d557862f