-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Prevent editor creation on detached element #4463
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI is red for this PR could you check what's going on?
Could you also provide unit tests which covers this case?
Initially, it was red because I didn't check if the config exists before use it. I fixed this. Now it's only red for `BROWSER=Firefox MOZ_HEADLESS=1`. One of them shows fail with pdf export and second I restart one of them to check if there is any randomness. |
This is a known issue we have already reported so it's not caused by this PR.
And this is not so if it still fails after restart it means this PR may be the cause here. |
The second run: shows only fail with pdf on single BROWSER=Firefox MOZ_HEADLESS=1. I will make all correct and I'll back to verify CI |
Also, I add new CKEditor error code, and made a ckeditor4-docs PR: ckeditor/ckeditor4-docs#344 |
CI is green (except pdf exporter). Ready for review. |
It's been a while since we last heard from you. We are marking this pull request as stale due to inactivity. Please provide the requested feedback or the pull request will be closed after next 7 days. |
There was no activity regarding this pull request in the last 14 days. We're closing it for now. Still, feel free to provide us with requested feedback so that we can reopen it. |
Waiting for next planing, after release |
Rebase onto newest major. |
It's been a while since we last heard from you. We are marking this pull request as stale due to inactivity. Please provide the requested feedback or the pull request will be closed after next 7 days. |
There was no activity regarding this pull request in the last 14 days. We're closing it for now. Still, feel free to provide us with requested feedback so that we can reopen it. |
Rebased onto latest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🎉 Good job @sculpt0r and @Dumluregn 👏 👏 👏
- added two manual tests:
detachedcustomcallbackmobile
anddetachedcustominterval
. Both are ignored in the non-mobile environment - since the test cases are the same asdetachedcustomcallback
anddetachedcustominterval
. However, I addedmessage
field in those tests. Because on mobile (at least mine) some operations are so slow, that in the first place you can think that nothing happened. So this field informs about the current stage.- For
detachedcustomcallback
anddetachedcustominterval
I added mobile ignore.
👍
Please take a look at #4463 (comment). Should I create follow up?
Yes, please 👍
Rechecked tests on IE9 and IE10 - everything's green ✔️
Just waiting for the CI to finish after rebase and I'll be merging this PR 👍 |
Created: #4641 |
What is the purpose of this pull request?
New feature
Does your PR contain necessary tests?
All patches that change the editor code must include tests. You can always read more
on PR testing,
how to set the testing environment and
how to create tests
in the official CKEditor documentation.
This PR contains
Did you follow the CKEditor 4 code style guide?
Your code should follow the guidelines from the CKEditor 4 code style guide which helps keep the entire codebase consistent.
What is the proposed changelog entry for this pull request?
What changes did you make?
Give an overview…
config.delayDetached
istrue
and target element isDetached: immediately returnnull
and start checking in1000
ms periods.onInstanceReady
viathis
Which issues does your PR resolve?
Closes #4461 .