- π«π·France egruel
Hello
I recently updated my Drupal 9.5.11 to 10.2.3.
In this situation, I was forced to update Linkit to version 6.1.2.
So far, I have used patch #12 β¨ Integration with LinkIt using an Anchor Link Matcher plugin for LinkIt to use the same drupal link core for CKEditor Active using Linkit version 5.0.0.But following the Linkit update, it no longer worked because of drupal_get_path() which is deprecated in D10 and a JS error when you attach an element to linkit.autocompleteeteete.
I think there is a problem with linkit.autocomplete that applies this feature on fields with the class 'form-linkit-autocomplete' but this class is not added by linkit directly, and I find it rather strange that it is anchor link that adds this class via the patch.
In ckeditor5, it seems that Linkitaautomatically adds this class to the initialization of the autcomplete, but not to ckeditor4.
So Iβll reroll the patch. Maybe it will be useful to someone else, or reopen the discussion on this integration.
- πΊπΈUnited States justcaldwell Austin, Texas
It looks like β¨ Add better support for linking to anchors Postponed: needs info in LinkIt's issue queue is getting close. Should this be closed as "won't fix" in favor of focusing efforts and testing there?
- π―π΄Jordan Rajab Natshah Jordan
Yes, Michael.
Thanks, for following up on the issue. - πΊπΈUnited States justcaldwell Austin, Texas
Retracting my comment #49. Sorry for the confusion.
The LinkIt issue β¨ Add better support for linking to anchors Postponed: needs info I referenced is only about ensuring LinkIt will work correctly when a fragment is appended to a link to another node (e.g. /node/5#foo).
This issue is augmenting the LinkIt dialog with a list of on-page anchors via the custom CKEditor Anchor link matcher (which would be nice to have!).
Unfortunately, in a quick test it doesn't quite seem to be working. When I begin a link with #, the 'Anchor links (within the same page)' list appears, but no anchors appear β just a single blank entry. Screenshot below.
- πΊπΈUnited States justcaldwell Austin, Texas
The above is based on the patch from #48, LinkIt 6.1.4 and Drupal 10.3.2.