ckeditor/ckeditor5-react

CKEditor5 issues when rerendering in react.

balean12 opened this issue · 3 comments

Hello, I am using CKEditor5-react for its rich text feature, nothing complicated. However, I am trying to reflect the changes a user is typing for another user that is on the page. Real time editing somehow. And I get this very buggy error regarding JSON.stringify(). Have you guys encountered this?

Could not send the log to the server, something is very wrong TypeError: Converting circular structure to JSON
--> starting at object with constructor 'Dc'
| property '_conversionApi' -> object with constructor 'Object'
--- property 'dispatcher' closes the circle
at JSON.stringify ()

image

I am using ckeditor5/ckeditor5-react v6.1.0 and having a CKEditor5 custom build

Witoso commented

Unfortunately, this is not enough information for us to help right now. Real-time collaboration is a complex task to achieve.

However, I am trying to reflect the changes a user is typing for another user that is on the page.

We would need to get more details to try to help, the error itself doesn't say much.

@balean12 it depends on what value you are trying to stringify.