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 properties of null (reading 'style') #346

Open
xa11der opened this issue Dec 30, 2023 · 2 comments
Open

Cannot read properties of null (reading 'style') #346

xa11der opened this issue Dec 30, 2023 · 2 comments
Assignees

Comments

@xa11der
Copy link

xa11der commented Dec 30, 2023

Hello there,

While utilizing SunEditor to store a base64 image in a database, I'm facing an issue where the image is encapsulated within a div element with the class se-component. This encapsulation leads to a type error Cannot read properties of null (reading 'style'). Interestingly, when I remove this class, the image is stored correctly, but now alignment classes can't be applied (e.g. __se__float-right).

Also, there is an error in the class

.sun-editor-editable .__se__float-center {
   float: center;
}

Thank you in advance,
xa11der

@ingo-rauner
Copy link

Please fix this bug timely. It leads to crashes of the UI. We had to modify some of the code ourselves to create a workaround for the crash issue.

@ivan-kralik
Copy link

I also confirm this issue

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

4 participants