-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Links added to wrong place when DecoupledEditor is attached to an iframe #12400
Comments
After checking the differences between v34.2.0 and v35.0.0, I suspect the behavior described above might be caused by commit a0244b0 . @niegowski, can you please indicate why the "document" argument was removed from most calls in ckeditor5-engine ? Thank you for your help. |
After more investigation, it seems that the changes done in |
I finally managed to pinpoint the source of the issue. This seems to alter the editor's selection when clicking on a toolbar button, by moving it to the beginning of the active paragraph (see below screen capture). This time I am 100% sure it's caused by the above mentioned commit as I setup a manual test (attached below) and tested commits made between v34.2.0 (813e062) and 35.0.1 (19e6094) using a "binary search" methodology. The test passes with commit 4f1f472, but fails with the one just after (9908c72). @mmotyczynska, @oleq, what was the purpose of that commit? |
I'm sorry to hear that something's changed in your use case due to recent change made by us. However, we never wanted to support iframed-editables in CKE5. This was a nightmare thing to support in CKE4 and we specifically dropped that. It might've worked up to some point, but recently we worked more on focus management in our UI. It makes sense that this affected iframes because, in general, iframes create their own set of focus and selection related problems. Out of curiosity, though, why do you use an iframe? |
Thank you for your response @Reinmar.
We are using CKEditor in metaScore, a fairly complex SPA that allows authors to edit interactive multimedia applications using an editor that embeds the application to be edited in an iframe to isolate it from the editor. This has worked flawlessly until the introduction of that small change, so I'm wondering what the purpose of that change was. |
BTW, our use case could likely be dealt with using Shadow DOM, but there seems to be similar issues with that as well. |
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. |
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). |
@semiaddict and anyone else who hits this, it wasn't the removal of
|
📝 Provide detailed reproduction steps (if any)
✔️ Expected result
The link is added on the selected text.
❌ Actual result
The link is prepended to the paragraph with the URL as its text.
📃 Other details
This used to work just fine with CKEditor 34.x, and seems to be broken in all 35.x versions.
Chrome doesn't seem to be affected.
If you'd like to see this fixed sooner, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: