Steve Mayers
Steve Mayers
For now I have to downgrade to v2 so I can force install types at v2. So they are in sync. Not great :(
Interesting, I kind of found a fix by cleaning the result this way: ``` const fragmentsRaw = deserialize(parsed.body); if(!Array.isArray(fragmentsRaw)){ throw new Error(`Unexepected fragmentsRaw is not an array`) } const fragmentsCleaned...
After further tweaking I noticed that in some cases the above fix is not good enough. `\n` gets prepended to the text elements so I came up with this fix...
The final code for insertData ``` editor.insertData = data => { if (!editor.insertFragmentData(data)) { const html = data.getData('text/html') if (true) { const parsed = new DOMParser().parseFromString(html, 'text/html') const fragmentsRaw =...
Thanks for the help, but after spending countless hours I fixed in 30 minutes (including creating a npm account). I tried all kind of imports... but seems like magic. Maybe...
`importType: 'module'` should be added to @types.
yes it is causing :( everything works quite smoothly. there is actually another bug and I will open now
same here. I think we need to use some older version. Current version is broken...