fix(mark-range): The internal nodes of the card will cause the id to be lost
This commit is contained in:
parent
ac6a258da8
commit
012771fccc
|
@ -246,7 +246,7 @@ class Scrollbar extends EventEmitter2 {
|
|||
this.reRenderY(scrollTop);
|
||||
}
|
||||
},
|
||||
50,
|
||||
0,
|
||||
{ leading: true },
|
||||
);
|
||||
|
||||
|
|
|
@ -405,6 +405,10 @@ export default class<T extends MarkRangeOptions> extends MarkPlugin<T> {
|
|||
if (cardComponent && cardComponent.onChange)
|
||||
cardComponent.onChange('local', cardComponent.root);
|
||||
}
|
||||
const cardComponent = this.editor.card.find(mark);
|
||||
if (cardComponent && cardComponent.executeMark) {
|
||||
cardComponent.executeMark(mark.clone(), false);
|
||||
}
|
||||
});
|
||||
this.#isApply = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue