1
0

fix(editor): set default id of tasklist items

This fixes a bug where all tasklist items would have the same id which would check all of them when checking one of them.
This commit is contained in:
kolaente 2024-02-17 11:38:08 +01:00
parent 44c1f0d281
commit 32edef2d38
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B

View File

@ -394,7 +394,7 @@ const editor = useEditor({
return { return {
...this.parent?.(), ...this.parent?.(),
id: { id: {
default: createRandomID, default: () => createRandomID(),
parseHTML: element => element.getAttribute('data-id'), parseHTML: element => element.getAttribute('data-id'),
renderHTML: attributes => ({ renderHTML: attributes => ({
'data-id': attributes.id, 'data-id': attributes.id,