udecode / plate

The rich-text editor for React.
https://platejs.org
Other
9.75k stars 624 forks source link

Exalidraw Plugin: Content is not saved #3235

Closed LeonMueller-OneAndOnly closed 1 week ago

LeonMueller-OneAndOnly commented 3 months ago

Great library! I really enjoy the scaffolding aspect from shadcn. Thanks to all maintainers for their great work.

I noticed following bug with the exalidraw integration:

Description

The contents of the excalidraw plugin are not persisted in the editor state.

Steps to Reproduce

  1. Create an editor that supports excalidraw
  2. add an excalidraw block, draw something in it
  3. Observe how now data is stored insider the children nodes / the "editor data" that is returned by the onChange handler of plate

The official playground of plate displays an excalidraw block. This should serve well as the playground / sandbox for this issue. Please let me know if I can provide further information on this topic.

Expected Behavior

The exalidraw data is added to the editor state content, otherwise we cant save it possibly

With best regards, Leon Müller

Funding

Fund with Polar

ECecillo commented 1 month ago

I think this is not a bug but a missing implementation from the library. I found the related issue https://github.com/udecode/plate/issues/2685