Empty anchor links are not editable

Created on 2 October 2023, about 1 year ago
Updated 30 November 2023, 12 months ago

Problem/Motivation

In the 2.x version of this module it was possible to create empty anchor links and edit them by double clicking them or by clicking them and clicking the anchor link button. This is not currently possible in the 3.0.x version. The only way to change empty anchor link names is by removing and recreating them. This is less user friendly than the old way.

Steps to reproduce

  1. Apply the appropriate configuration to be able to use this widget on a field (i.e. install the module, add the plugin to a text format)
  2. Edit a WYSIWYG field and click somewhere with no content (do not highlight existing content)
  3. Click the anchor link button
  4. Enter a name
  5. An empty anchor link will be created (here represented as [INVISIBLE ANCHOR LINK: ]
  6. Try to double click this anchor link or click it and click the anchor link button - nothing happens

Proposed resolution

There should be an easier way to edit the name of the anchor link. Ideally the same behaviour as before where double clicking it or clicking it and clicking the anchor link icon opens the dialog to set the name again.

Remaining tasks

This probably needs to be updated in the external plugin at https://github.com/northernco/ckeditor5-anchor-drupal. The external plugin is a fork of bvedad/ckeditor5-anchor and probably needs to first be updated in https://github.com/bvedad/ckeditor5-anchor/issues/6.

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇨🇦Canada dylan donkersgoed London, Ontario

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024