1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-30 04:23:11 +03:00

Lexical: Added support for table caption nodes

Needs linking up to the table form still.
This commit is contained in:
Dan Brown
2025-01-22 12:54:13 +00:00
parent 04cca77ae6
commit 8a66365d48
5 changed files with 101 additions and 8 deletions

View File

@ -1165,6 +1165,16 @@ export class LexicalNode {
markDirty(): void {
this.getWritable();
}
/**
* Insert the DOM of this node into that of the parent.
* Allows this node to implement custom DOM attachment logic.
* Boolean result indicates if the insertion was handled by the function.
* A true return value prevents default insertion logic from taking place.
*/
insertDOMIntoParent(nodeDOM: HTMLElement, parentDOM: HTMLElement): boolean {
return false;
}
}
function errorOnTypeKlassMismatch(