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).
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 errorCannot 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
Thank you in advance, xa11der