ckeditor5-react icon indicating copy to clipboard operation
ckeditor5-react copied to clipboard

CKEditor5 issues when rerendering in react.

Open balean12 opened this issue 1 year ago • 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

balean12 avatar Aug 15 '23 12:08 balean12

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

balean12 avatar Aug 15 '23 12:08 balean12

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.

Witoso avatar Aug 16 '23 07:08 Witoso

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

AliaksandrBortnik avatar Aug 25 '23 11:08 AliaksandrBortnik