Lexical: Standardised helper function format

This commit is contained in:
Dan Brown
2024-07-17 16:45:57 +01:00
parent b367490edc
commit 5002a89754
5 changed files with 69 additions and 65 deletions

View File

@ -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);
});
}
}