-
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
Double-click on link opens empty link dialog due to bug in getSelectedLink #859
Comments
This fix works for me. |
regression since 4.7.0 |
I have created a quick unit test for that: https://gist.github.com/mlewand/4b61bbd8540de0b1ecc00e0c99e12404 |
Hey @MichaelHeerklotz just to let you know, the fix has been merged into the If you can't wait for it, you can download the nightly release from the "CKEditor Nightly Build" section on our download page. Keep in mind, however, that it has not been verified by our integration testing phase yet as we will do this right before the release. |
I've updated issue's title and description. |
Are you reporting a feature request or a bug?
Bug
Provide detailed reproduction steps (if any)
some button text
Expected result
The link dialog should show with proper link data. Check especially:
Actual result
The link dialog does not have data described above.
Other details
What I found out so far:
getSelectedLink (editor, false)
worksselection.getSelectedElement()
is null, but when I double-click it points to the correcta
range.getCommonAncestor()
points to thesome button text
, on double-clickrange.getCommonAncestor()
points to thep
tag <<<< this causes the problem in my opinion.The text was updated successfully, but these errors were encountered: