editor.js icon indicating copy to clipboard operation
editor.js copied to clipboard

Fix/add tunes data in mutation events

Open GuillaumeOnepilot opened this issue 1 year ago • 3 comments

My usage of EditorJs rely mainly on the Mutation events to make granular actions on my backend, instead of pushing the whole lists of blocks.

I'm currently working on an annotation feature which require the tunes data to be sent, but unfortunately the different events don't have the tunes data sent with them, which mean I have to change my logic (which would be complicated)

So I propose to add the tunes data inside the different mutations events.

GuillaumeOnepilot avatar Apr 15 '24 19:04 GuillaumeOnepilot

I'm currently working on an annotation feature which require the tunes data to be sent

Could you provide some examples?

neSpecc avatar Apr 15 '24 19:04 neSpecc

So basically I want my tune to act a some kind of metadata on the blocks, but the events don't hold the tune's data and I don't use the saver api in my case.

https://github.com/codex-team/editor.js/assets/97881811/abcbf9ef-64c7-40d3-a63b-aed9f0b883b1

GuillaumeOnepilot avatar Apr 16 '24 06:04 GuillaumeOnepilot

Why not just call await event.detail.target.save()? Tunes data will be there

neSpecc avatar Jun 08 '24 11:06 neSpecc