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

A component is contentEditable and contains children managed by React in Suneditor while working in Next.js. #1229

Closed
divrawat opened this issue Apr 18, 2023 · 1 comment
Milestone

Comments

@divrawat
Copy link

divrawat commented Apr 18, 2023

Adding images or iframes through suneditor to a blogpost or article will give warning in console "A component is contentEditable and contains children managed by React" after viewing that article or blogposts.

1
...

..
..

Published Article --

2

This is because when you add image or iframe then an attribute contenteditable=" false" is attached to image component or div of SunEditor. And because of this, warning can be seen in console.

3

If I remove contenteditable=" false" from source of Suneditor while writing the article and then view that article after publishing then the warning is gone.

4

@JiHong88 is there a reason why we add contenteditable=" false"?

Conclusion - Adding images or iframes etc. through Suneditor to a blogpost or article will give warning in console "A component is contentEditable and contains children managed by React" after viewing that article or blogposts.

@JiHong88 JiHong88 added this to the 2.44.11 milestone Apr 19, 2023
JiHong88 added a commit that referenced this issue Apr 20, 2023
@JiHong88
Copy link
Owner

The 2.44.12 version has been updated.
Thank you.

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

No branches or pull requests

2 participants