ckeditor4
ckeditor4 copied to clipboard
Anchors with white-space only names are deleted
Are you reporting a feature request or a bug?
Bug
Provide detailed reproduction steps (if any)
- Open https://sdk.ckeditor.com/samples/classic.html
- Click "Anchor" button.
- Set its name to " " (single space) in dialog and click "Ok".
- 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
A space-only anchor is not valid per HTML 5.2. See HTML 5.2 Recommendation concerning the ID attribute.