ckeditor / ckeditor4

The best enterprise-grade WYSIWYG editor. Fully customizable with countless features and plugins.
https://ckeditor.com/ckeditor-4
Other
5.79k stars 2.47k forks source link

Error thrown when changing table caption size twice #3031

Open Dumluregn opened 5 years ago

Dumluregn commented 5 years ago

Type of report

Bug

Provide detailed reproduction steps (if any)

  1. Go to https://ckeditor.com/docs/ckeditor4/latest/examples/table.html
  2. Add any caption to the table in editor
  3. Select caption
  4. Change format to Heading 2
  5. Change format to Heading 1

Expected result

Format is changed, caption is selected, no error is thrown

Actual result

Format is changed but selection is lost and there is an error in console:

Uncaught DOMException: Failed to execute 'setEnd' on 'Range': There is no child at offset 1.

Other details

Dumluregn commented 5 years ago

Table caption error