- Issue created by @joegl
We are upgrading from CKEditor 4 to 5 for a D10 upgrade due to D9 EOL. In CKEditor 4, you were not allowed to create a link without it having a valid URL/href. In CKEditor 5, you're allowed to input nothing for the URL and it will turn the selected text into an anchor with an href attribute set to nothing. E.g., <a href>Text</a>
.
We allow content editors to apply button styles to anchors (<a>
) and allowing empty anchors is a regression for our users. We'd like the option to be able to disable empty input and require a URL/href value.
1. Edit an entity with a CKEditor
2. Type some text
3. Select the text and click the link button
4. Click the check box without inputting anything
5. Watch the text get wrapped with <a href></a>
Allow the ability for Drupal site owners to disable empty URL input.
Active
6.0
Code