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

[FF] Selection jumps to the previous position after re-focusing the editor #734

Closed
Mgsy opened this issue Dec 19, 2017 · 6 comments
Closed
Labels
browser:firefox resolution:expired This issue was closed due to lack of feedback. type:bug This issue reports a buggy (incorrect) behavior.

Comments

@Mgsy
Copy link
Member

Mgsy commented Dec 19, 2017

🐞 Is this a bug report or feature request? (choose one)

  • Bug report

💻 Version of CKEditor

1.0.0-alpha2

📋 Steps to reproduce

  1. Go to http://localhost:8125/ckeditor5-core/tests/manual/article.html.
  2. Put the caret in Heading 1.
  3. Open the browser console.
  4. Focus the console.
  5. Put the caret in OL List item 2.

✅ Expected result

Selection appears in OL List item 2.

❎ Actual result

Selection has jumped to the previous position.

📃 Other details that might be useful

GIF
bug_cke5

Notes
It doesn't occur if you blur the editor by clicking outside of it. You have to focus some browser component (console, url bar etc.).

Other information
OS: Windows 10, macOS X
Browser: Firefox

@Mgsy Mgsy added the type:bug This issue reports a buggy (incorrect) behavior. label Dec 19, 2017
@ma2ciek
Copy link
Contributor

ma2ciek commented Dec 19, 2017

Not sure if it's connected to the recently closed issue https://github.com/ckeditor/ckeditor5-engine/issues/1155 and PR: ckeditor/ckeditor5-engine#1201

@Reinmar
Copy link
Member

Reinmar commented Jan 17, 2018

I changed the timeout to 1000ms and it didn't help. For some reason, the model selection is incorrect.

@Reinmar
Copy link
Member

Reinmar commented Jun 25, 2018

Similar scenario (caused, most likely, by the same issue):

  1. Refresh the page (so everything is lemon fresh).
  2. Click in the content.
  3. The selection appears there, but it's moved to another location after <1s.

This happens, most likely, due to the focus event being fired with a delay. The mechanism was described here: ckeditor/ckeditor5-engine#1442.

jun-25-2018 16-56-20

@CKEditorBot
Copy link
Collaborator

There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may be relevant, so if you're interested in the solution, leave a comment or reaction under this issue.

@CKEditorBot
Copy link
Collaborator

There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may still be relevant, so if you're interested in the solution, leave a comment or reaction under this issue.

@CKEditorBot
Copy link
Collaborator

We've closed your issue due to inactivity over the last year. We understand that the issue may still be relevant. If so, feel free to open a new one (and link this issue to it).

@CKEditorBot CKEditorBot added resolution:expired This issue was closed due to lack of feedback. and removed status:stale labels Jan 15, 2024
@CKEditorBot CKEditorBot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
browser:firefox resolution:expired This issue was closed due to lack of feedback. type:bug This issue reports a buggy (incorrect) behavior.
Projects
None yet
Development

No branches or pull requests

6 participants