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:
parent
44c1f0d281
commit
32edef2d38
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user