Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor crashes on initialization when Table of Contents and ImageBlock is enabled #16915

Closed
Mgsy opened this issue Aug 13, 2024 · 0 comments
Closed
Assignees
Labels
squad:core Issue to be handled by the Core team. support:2 An issue reported by a commercially licensed client. type:bug This issue reports a buggy (incorrect) behavior.

Comments

@Mgsy
Copy link
Member

Mgsy commented Aug 13, 2024

📝 Provide detailed reproduction steps (if any)

  • Create a sample with the Table of Contents and ImageBlock plugins,
  • Set the following initial data -
<h2 style="text-align:center;" id="ea849de114d74a69583adbe458569c912"><img class="image_resized" style="width:20.17%;" src="https://www.shutterstock.com/image-vector/sample-red-square-grunge-stamp-260nw-338250266.jpg"></h2>
  • Initialize the editor

You can use the project I've created - toc-image-block-issue.zip

❌ Actual result

The editor doesn't initialize and throws the error:

ckeditorerror.ts:108 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'getAttribute')
    at Vu (writer.ts:1815:29)
    at Iu.setAttribute (writer.ts:543:4)
    at Eh.<anonymous> (ckeditor5-premium-features.js:31:219346)
    at Eh.fire (emittermixin.ts:241:31)
    at Eh._convertItem (upcastdispatcher.ts:264:9)
    at Eh._convertChildren (upcastdispatcher.ts:314:24)
    at Object.convertChildren (upcastdispatcher.ts:174:64)
    at Ih.upcastDispatcher.on.priority (upcasthelpers.ts:503:54)
    at Eh.fire (emittermixin.ts:241:31)
    at Eh._convertItem (upcastdispatcher.ts:276:9)

If you'd like to see this fixed sooner, add a 👍 reaction to this post.

@Mgsy Mgsy added type:bug This issue reports a buggy (incorrect) behavior. support:2 An issue reported by a commercially licensed client. squad:core Issue to be handled by the Core team. labels Aug 13, 2024
@Mati365 Mati365 self-assigned this Aug 16, 2024
@Mati365 Mati365 closed this as completed Aug 21, 2024
@CKEditorBot CKEditorBot added this to the iteration 77 milestone Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
squad:core Issue to be handled by the Core team. support:2 An issue reported by a commercially licensed client. type:bug This issue reports a buggy (incorrect) behavior.
Projects
None yet
Development

No branches or pull requests

3 participants