jsonkao / jasons-cms

A collaborative editor for stories that are both written and coded
https://jasons-cms.vercel.app
0 stars 0 forks source link

Share undo/redo state between code-editor and text-editor (needed for block deletion, I think) #15

Open jsonkao opened 7 months ago

jsonkao commented 7 months ago

I think this could be solved if both the iframe and parent used the same transaction origin.

But, wouldn't the undo manager also have to be saved? Maybe, send all undo and redo keystrokes through to the iframe via Postmessage api?