We created the anchor plugin in Panopoly WYSIWYG in #2939911: Anchor support in Drupal 8 because the contrib anchor_link module had some problems (details on that issue).

This functionality should be spun out into its own contrib module (maybe even going to anchor_link?) because the functionality is pretty generic.

Before that, there's one more feature to implement: #2954903: Anchor dialog should use a Drupal form

Comments

dsnopek created an issue.

mpp’s picture

Wouldn't it make more sense to contribute this to core?

See https://www.drupal.org/project/editor_advanced_link/issues/2595337#comme...

dsnopek’s picture

Sure, but that'll mean it'll be at minimum 6 months until we can use it, but probably longer given how slowly things move through the core queue. I think a good next step would be putting it in it's own contrib module so there's something we can use right away!

rang501’s picture

Hi!
We needed this functionality fast so I tried to implement it. You can check it out at https://www.drupal.org/sandbox/rang501/2998051
It basically uses panopoly anchor plugin and adds additional functionality to select anchors from Drupal link dialog. It checks all available ckeditor instances for anchors.
This module requires fakeobjects module and does not depend on panopoly distribution.
Ideas are welcome and I can promote it to full project if needed.

tm541’s picture

Is this still in the works? I was very surprised to see that there is no way to create an anchor link within the panoply editor. Has there been any progress with this issue lately?