-
Notifications
You must be signed in to change notification settings - Fork 0
/
PlaygroundNodes.ts
88 lines (83 loc) · 2.42 KB
/
PlaygroundNodes.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
import { ParagraphNode, type Klass, type LexicalNode } from 'lexical';
import { CodeHighlightNode, CodeNode } from '@lexical/code';
import { HashtagNode } from '@lexical/hashtag';
import { AutoLinkNode, LinkNode } from '@lexical/link';
import { ListItemNode, ListNode } from '@lexical/list';
import { MarkNode } from '@lexical/mark';
import { OverflowNode } from '@lexical/overflow';
import { HeadingNode, QuoteNode } from '@lexical/rich-text';
import { TableCellNode, TableNode, TableRowNode } from '@lexical/table';
import { ImageNode } from '@plugins/ImagesPlugin/ImageNode';
import { KeywordNode } from '@plugins/KeywordsPlugin/KeywordNode';
import { HorizontalRuleNode } from '@plugins/HorizontalPlugin/LexicalHorizontalRuleNode';
import { PageBreakNode } from '@plugins/PageBreakPlugin/PageBreakNode';
import { CollapsibleContainerNode } from '@plugins/CollapsiblePlugin/CollapsibleContainerNode';
import { CollapsibleContentNode } from '@plugins/CollapsiblePlugin/CollapsibleContentNode';
import { CollapsibleTitleNode } from '@plugins/CollapsiblePlugin/CollapsibleTitleNode';
import { EquationNode } from '@plugins/EquationsPlugin/EquationNode';
import { AutocompleteNode } from '@plugins/AutocompletePlugin';
//import { EmojiNode } from '@plugins/EmojisPlugin/EmojiNode';
const PlaygroundNodes: Array<Klass<LexicalNode>> = [
HeadingNode,
ListNode,
ListItemNode,
QuoteNode,
CodeNode,
TableNode,
TableCellNode,
TableRowNode,
HashtagNode,
CodeHighlightNode,
AutoLinkNode,
LinkNode,
OverflowNode,
ImageNode,
MarkNode,
KeywordNode,
ParagraphNode,
HorizontalRuleNode,
PageBreakNode,
// collapsible
CollapsibleContainerNode,
CollapsibleContentNode,
CollapsibleTitleNode,
//EmojiNode
AutocompleteNode,
EquationNode
];
export const SimpleNodes: Array<Klass<LexicalNode>> = [
HeadingNode,
ListNode,
ListItemNode,
QuoteNode,
CodeNode,
//TableNode,
//TableCellNode,
//TableRowNode,
HashtagNode,
CodeHighlightNode,
AutoLinkNode,
LinkNode,
OverflowNode,
//ImageNode,
MarkNode,
KeywordNode,
ParagraphNode,
HorizontalRuleNode,
//PageBreakNode,
// collapsible
CollapsibleContainerNode,
CollapsibleContentNode,
CollapsibleTitleNode,
//EmojiNode
EquationNode
];
export default PlaygroundNodes;
export { PlaygroundNodes as EditorNodes };