ckeditor4 icon indicating copy to clipboard operation
ckeditor4 copied to clipboard

Anchors with white-space only names are deleted

Open Comandeer opened this issue 8 years ago • 1 comments

Are you reporting a feature request or a bug?

Bug

Provide detailed reproduction steps (if any)

  1. Open https://sdk.ckeditor.com/samples/classic.html
  2. Click "Anchor" button.
  3. Set its name to " " (single space) in dialog and click "Ok".
  4. Double click newly inserted anchor.

Expected result

Anchor dialog should open.

Actual result

Nothing happens. What's more, after switching to source mode and back to WYSIWYG, anchor is removed.

Other details

  • CKEditor version: 4.5.0+
  • Installed CKEditor plugins: link

Comandeer avatar Feb 13 '18 12:02 Comandeer

A space-only anchor is not valid per HTML 5.2. See HTML 5.2 Recommendation concerning the ID attribute.

CharlesBelov avatar Aug 04 '22 00:08 CharlesBelov