-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Insert link: cannot add a new link or modify an existing link using "Link options" (gear icon) in the classic block #7932
Comments
Tested and found that I cannot add a new link or modify an existing link using the classic block "Link options" (gear icon) but that the basic floating link toolbar only works as expected. Video: 1m40s |
It seems we have a few regressions in Link interactions, also seen in other blocks. For this, I'm putting this on the next milestone so we have more eyes on it. Let's see if these regressions are all the same. |
Do we know that this was ever working (for the Classic block, specifically) ? |
I'm not sure whether it was working before! |
Punting one more time but we should definitely try to tackle this at some point. Any classic editor expert takers? |
Just to add to this - still not working as of today. Chrome v68 |
I can reproduce this issue. There appears to be a race condition somewhere, as the ability to reproduce it depends on where I put a breakpoint: If it put it on this line, the link doesn't update. If I put it on the next line, it does update. |
@turtlepod tested and confirmed this issue using WordPress 4.9.8 and Gutenberg 4.1.1 and I thanked them for the report and closed #11432 as a duplicate. |
This issue still in latest gutenberg 4.5.0 WhyThis is super important, because all previous/old content will be converted/fallback to classic editor block and classic editor block need to work flawlessly If really not possible to fix this, I suggest to simply remove the wplink in classic editor and use regular tinymce link plugin (which is included in core) Trac Link: https://core.trac.wordpress.org/ticket/41590 Demo (it's my custom editor, but you'll get the idea) So, basically, if user want to add link the "fancy way" use block and not classic editor block. Thoughts on this? cc @azaozz |
@mtias I just realize you change the milestone to 5.0.1 I explain a hotfix in my previous comment if needed. at least it will not be broken on launch. |
Re-tested with WordPress 4.9.8 and Gutenberg 4.5.1 and found that if I make the edits twice then they take effect but the first time you edit link options (gear icon) in the "Insert/edit link" modal the updates do not take effect. Video: 2m21s Note: the exact same problem happens when trying to edit Image Details, see #11433. |
This issue still exists for me. Nothing from the gear icon saves so I can not set links to open in a new tab.. |
I've been looking at several similar occurrences in the Classic Block TinyMCE instance. One of the causes is that we keep needlessly reloading the editor content (and replacing the DOM) on blur (often, but not always). When opening an external modal the editor gets blurred, so any DOM references are broken. It's not just that though. In some cases the DOM in the contenteditable gets corrupted somehow, like the newly added link node doesn't have a parentNode, etc. Still trying to figure out how/why that happens :( |
Opened https://core.trac.wordpress.org/ticket/46071 to track this as it is an issue with one of the custom TinyMCE plugins in WP. Think this can safely be closed (needs a "Close" label). |
Describe the bug
When I add a link to some words in a text, a small box appear to put URL. If I need to do extra configurations like open URL in an external page, I click on the link options icon.
After finishing the changes, when saving, the page jumps to the beginning, losing the link, the changes I made and keeping the box open, without any change to close it.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Save changes and close box in the same position of the scroll.
Screenshots
https://cl.ly/0O0L3h1E0V2v
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: