plate icon indicating copy to clipboard operation
plate copied to clipboard

Exalidraw Plugin: Content is not saved

Open LeonMueller-OneAndOnly opened this issue 1 year ago • 1 comments

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

  • You can sponsor this specific effort via a Polar.sh pledge below
  • We receive the pledge once the issue is completed & verified
Fund with Polar

LeonMueller-OneAndOnly avatar May 31 '24 16:05 LeonMueller-OneAndOnly

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

ECecillo avatar Jul 18 '24 15:07 ECecillo