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

"Cannot read property 'startContainer' of null" with b element #1233

Closed
blocknotes opened this issue Jul 15, 2021 · 2 comments
Closed

"Cannot read property 'startContainer' of null" with b element #1233

blocknotes opened this issue Jul 15, 2021 · 2 comments

Comments

@blocknotes
Copy link

"Cannot read property 'startContainer' of null" JavaScript error with the following initial content: <p><b>Test</b></p>

Description

Using Trumbowyg 2.25.0 and setting <p><b>Test</b></p> as initial content for the editor I get the JS error "Cannot read property 'startContainer' of null" and the toolbar is not available.

How to reproduce?

https://jsfiddle.net/dLvfeaob/1/

<div id="editor">
  <p><b>Test</b></p>
</div>
$(document).ready(function() {
  $('#editor').trumbowyg();
});
@Alex-D
Copy link
Owner

Alex-D commented Jul 15, 2021

Thank you for the report!
I've fixed it in 2.25.1 :)

@Alex-D Alex-D closed this as completed Jul 15, 2021
@blocknotes
Copy link
Author

wow 🚀 thanks @Alex-D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants