Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caret position keeps jumps down inside inline_boundaries_selector elements with empty lines #9485

Open
Amdoun opened this issue Mar 15, 2024 · 0 comments

Comments

@Amdoun
Copy link

Amdoun commented Mar 15, 2024

📝 Provide detailed reproduction steps (if any)

Please provide the steps to reproduce and if possible a minimal demo of the problem via fiddle.tiny.cloud or similar.

  1. Add an element that has the property inline_boundaries_selector (For example, Code)
  2. Add a few line breaks with SHIFT+ENTER (Do not add any text in the new lines)
  3. Navigate down that element with the arrow key and navigate up in order to check where the caret is placed

✔️ Expected result

The expected result is that the caret should be located on the specified line without it changing its position by its own.

❌ Actual result

Check this video:

Screen.Recording.2024-03-15.at.08.29.26.mov

From the 0:10 mark, all I did was press the UP arrow key and it created, then it seemed to have added a new line break by its own. Then the caret kept jumping to the bottom position if I tried to move it up. From 0:11 and onwards, I was only pressing the UP arrow key and the caret kept trying to position itself in the end of the inline element.

📃 Other details

  • Browser: Chrome
  • OS: MacOS
  • TinyMCE version: 6.8.3

If you'd like to see this fixed sooner, add a 👍 reaction to this post.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant