@mkljczk/lexical-remark
Version:
This package contains Markdown helpers and functionality for Lexical using remark-parse.
24 lines (17 loc) • 385 B
text/typescript
import type { LexicalNode } from 'lexical';
export class DummyRootNode {
children: LexicalNode[] = [];
stack: LexicalNode[] = [];
append(...nodesToAppend: LexicalNode[]) {
this.children.push(...nodesToAppend);
}
getChildren() {
return this.children;
}
setStack(stack: LexicalNode[]) {
this.stack = stack;
}
getStack() {
return this.stack;
}
}