pleroma/app/soapbox/features/compose/editor/nodes.ts
marcin mikołajczak 31f340282f wip lexical
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2023-01-01 19:03:21 +01:00

74 lines
2.3 KiB
TypeScript

/**
* 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 { 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 { HorizontalRuleNode } from '@lexical/react/LexicalHorizontalRuleNode';
import { HeadingNode, QuoteNode } from '@lexical/rich-text';
// import { TableCellNode, TableNode, TableRowNode } from '@lexical/table';
// import { CollapsibleContainerNode } from '../plugins/CollapsiblePlugin/CollapsibleContainerNode';
// import { CollapsibleContentNode } from '../plugins/CollapsiblePlugin/CollapsibleContentNode';
// import { CollapsibleTitleNode } from '../plugins/CollapsiblePlugin/CollapsibleTitleNode';
// import { AutocompleteNode } from './AutocompleteNode';
// import { EmojiNode } from './EmojiNode';
// import { EquationNode } from './EquationNode';
// import { ExcalidrawNode } from './ExcalidrawNode';
// import { FigmaNode } from './FigmaNode';
// import { ImageNode } from './ImageNode';
// import { KeywordNode } from './KeywordNode';
// import { MentionNode } from './MentionNode';
// import { PollNode } from './PollNode';
// import { StickyNode } from './StickyNode';
// import { TableNode as NewTableNode } from './TableNode';
// import { TweetNode } from './TweetNode';
// import { YouTubeNode } from './YouTubeNode';
import type { Klass, LexicalNode } from 'lexical';
const PlaygroundNodes: Array<Klass<LexicalNode>> = [
HeadingNode,
// ListNode,
// ListItemNode,
QuoteNode,
CodeNode,
// NewTableNode,
// TableNode,
// TableCellNode,
// TableRowNode,
// HashtagNode,
CodeHighlightNode,
AutoLinkNode,
LinkNode,
// OverflowNode,
// PollNode,
// StickyNode,
// ImageNode,
// MentionNode,
// EmojiNode,
// ExcalidrawNode,
// EquationNode,
// AutocompleteNode,
// KeywordNode,
HorizontalRuleNode,
// TweetNode,
// YouTubeNode,
// FigmaNode,
// MarkNode,
// CollapsibleContainerNode,
// CollapsibleContentNode,
// CollapsibleTitleNode,
];
export default PlaygroundNodes;