- Issue created by @bgreco
- πΊπΈUnited States mark_fullmer Tucson
Thanks for the GIF illustrating the problem. I've encountered this problem, too. I assume it has to do with CKEditor 5's upcasted version of the element having a greedy boundary.
Setting the priority to "Major," as this could cause headaches for content editors.
- πΊπΈUnited States mark_fullmer Tucson
Update: this is still considered a "Major" level bug for Linkit, and is still prioritized.
- First commit to issue fork.
- Merge request !31Draft: Issue #3364963 "This link has no URL" when inserting text before a link β (Open) created by trackleft2
- last update
about 1 year ago 83 pass - Status changed to Needs review
about 1 year ago 9:47pm 26 October 2023 - last update
about 1 year ago 83 pass - Status changed to Needs work
about 1 year ago 10:12pm 26 October 2023 - πΊπΈUnited States trackleft2 Tucson, AZ πΊπΈ
The issue is present, even with the patch applied.
- Status changed to Needs review
about 1 year ago 5:05pm 27 October 2023 - πΊπΈUnited States trackleft2 Tucson, AZ πΊπΈ
- Status changed to Needs work
about 1 year ago 5:40pm 27 October 2023 - last update
about 1 year ago 82 pass, 1 fail - Status changed to Needs review
about 1 year ago 9:59pm 27 October 2023 - last update
about 1 year ago 82 pass, 1 fail The last submitted patch, 10: 3364963-this-link-has-no-url-10.patch, failed testing. View results β
- last update
about 1 year ago 82 pass, 1 fail - last update
about 1 year ago 82 pass, 1 fail - Status changed to Needs work
12 months ago 1:53am 11 December 2023 - π¦πΊAustralia acbramley
acbramley β changed the visibility of the branch 6.1.x to hidden.
- π¦πΊAustralia acbramley
acbramley β changed the visibility of the branch 3364963-this-link-has to hidden.
- πΊπΈUnited States edwardsay
This issue was partially resolved in Drupal Core 10.2 because it uses CKEditor version 40.
After the update, there is no "This link has no URL" tooltip when clicking on the end of the link. But it is still present when clicking on the start of the link.
- last update
10 months ago 82 pass, 2 fail - last update
10 months ago 81 pass, 3 fail - Status changed to Needs review
10 months ago 8:31pm 15 February 2024 - last update
10 months ago 81 pass, 3 fail - πΊπΈUnited States trackleft2 Tucson, AZ πΊπΈ
Updated the MR and added a new patch against 6.1.x
The last submitted patch, 16: 3364963-this-link-has-no-url-16.patch, failed testing. View results β
- πΊπΈUnited States drpldrp San Francisco, CA
CkEditor does special link handling if the element attribute data model name starts with "link", eg. "linkHref" or "linkWhatever".
LinkIt uses
['data-entity-type', 'data-entity-uuid', 'data-entity-substitution']
for both the attribute model and view names.So because the model names don't start with "link", CkEditor thinks it should inherit the previous element attributes like for bold or other styling.
The fix is to split out the attribute vars so the model names start with "link" and the view names stay the same.
Attached patch tested with Drupal 10.1.8 and LinkIt 6.1.3.
- Status changed to Needs review
8 months ago 5:33pm 18 April 2024 - πΊπΈUnited States drpldrp San Francisco, CA
Marking as Needs Review. Sorry if this is not the appropriate workflow, ie. this is missing tests or anything else.
- Merge request !50"This link has no URL" when inserting text before or after a link β (Merged) created by drpldrp
- πΊπΈUnited States drpldrp San Francisco, CA
drpldrp β changed the visibility of the branch 6.1.x to active.
- πΊπΈUnited States drpldrp San Francisco, CA
drpldrp β changed the visibility of the branch 6.1.x to hidden.
-
mark_fullmer β
committed c275d3b6 on 6.1.x authored by
drpldrp β
Issue #3364963 by trackleft2, drpldrp, mark_fullmer, bgreco, acbramley,...
-
mark_fullmer β
committed c275d3b6 on 6.1.x authored by
drpldrp β
- Status changed to Fixed
7 months ago 8:36pm 8 May 2024 - πΊπΈUnited States mark_fullmer Tucson
The explanation for the root cause, provided in #18, makes sense to me, above, and the code change looks valid. Tests pass, so let's merge this!
- π¦πΊAustralia acbramley
Amazing, thanks everyone! And thanks a lot @mark_fullmer for including this in a release already :)
Automatically closed - issue fixed for 2 weeks with no activity.