mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
32 lines
790 B
TypeScript
32 lines
790 B
TypeScript
|
import { HeadingNode, QuoteNode } from "@lexical/rich-text";
|
||
|
import { TableCellNode, TableNode, TableRowNode } from "@lexical/table";
|
||
|
import { ListItemNode, ListNode } from "@lexical/list";
|
||
|
import { CodeHighlightNode, CodeNode } from "@lexical/code";
|
||
|
import { AutoLinkNode, LinkNode } from "@lexical/link";
|
||
|
// theme
|
||
|
import { defaultTheme } from "./theme";
|
||
|
|
||
|
export const initialConfig = {
|
||
|
namespace: "LexicalEditor",
|
||
|
// The editor theme
|
||
|
theme: defaultTheme,
|
||
|
// Handling of errors during update
|
||
|
onError(error: any) {
|
||
|
console.error(error);
|
||
|
},
|
||
|
// Any custom nodes go here
|
||
|
nodes: [
|
||
|
HeadingNode,
|
||
|
ListNode,
|
||
|
ListItemNode,
|
||
|
QuoteNode,
|
||
|
CodeNode,
|
||
|
CodeHighlightNode,
|
||
|
TableNode,
|
||
|
TableCellNode,
|
||
|
TableRowNode,
|
||
|
AutoLinkNode,
|
||
|
LinkNode,
|
||
|
],
|
||
|
};
|