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

TypeError Cannot read property 'style' of null #374

Closed
doug-luce-kubra opened this issue May 14, 2020 · 5 comments
Closed

TypeError Cannot read property 'style' of null #374

doug-luce-kubra opened this issue May 14, 2020 · 5 comments
Labels
Milestone

Comments

@doug-luce-kubra
Copy link

doug-luce-kubra commented May 14, 2020

Hello, thanks for your work with this it's appreciated.

Currently, I'm using sun editor to persist images in base64 to a database, but they are getting wrapped in a div with a class name of se-component which is causing an error TypeError Cannot read property 'style' of null. I've replicated it in this code sandbox https://codesandbox.io/s/setoptions-failed-with-cannot-read-property-style-of-null-4j8w6?file=/src/App.js By removing the se-compoent class it works just fine.

I'm not sure what I'm missing, is it intended that the <img tag is wrapped in a div with this class?

This is in version 2.11.0 of the React component and it looks like that version uses version 2.29.0 of Sun Editor.

Thanks,

Doug

@JiHong88 JiHong88 added this to the 2.30.0 milestone May 17, 2020
@JiHong88 JiHong88 added the bug label May 17, 2020
JiHong88 added a commit that referenced this issue May 17, 2020
@doug-luce-kubra
Copy link
Author

@JiHong88 Do you have an estimate of when this will be released as part of the 2.30.0 release?

Thanks!

@JiHong88
Copy link
Owner

@doug-luce-kubra It will be released this week.

@doug-luce-kubra
Copy link
Author

Awesome, thanks.

@JiHong88
Copy link
Owner

JiHong88 commented Jun 9, 2020

The 2.30.0 version has been updated.
If this issue has not been resolved, please reopen this issue.
Thank you.

@doug-luce-kubra
Copy link
Author

Thanks! @JiHong88

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

No branches or pull requests

2 participants