wysiwyg-editor icon indicating copy to clipboard operation
wysiwyg-editor copied to clipboard

Error with Selection and Pos1

Open D4sK43nguru opened this issue 1 year ago • 0 comments

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.

  1. Write Text spreading over multiple lines
  2. Start selecting Text and move cursor with selection to line above with SHIFT + ARROW_UP
  3. 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

D4sK43nguru avatar Sep 20 '23 14:09 D4sK43nguru