mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-04 17:04:32 +08:00
Lexical: Standardised helper function format
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import {el, insertNewBlockNodeAtSelection} from "../../../helpers";
|
||||
import {el, $insertNewBlockNodeAtSelection} from "../../../helpers";
|
||||
import {EditorUiElement} from "../core";
|
||||
import {$createTableNodeWithDimensions} from "@lexical/table";
|
||||
import {CustomTableNode} from "../../../nodes/custom-table";
|
||||
@ -75,7 +75,7 @@ export class EditorTableCreator extends EditorUiElement {
|
||||
|
||||
this.getContext().editor.update(() => {
|
||||
const table = $createTableNodeWithDimensions(rows, columns, false) as CustomTableNode;
|
||||
insertNewBlockNodeAtSelection(table);
|
||||
$insertNewBlockNodeAtSelection(table);
|
||||
});
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user