35 lines
923 B
TypeScript
35 lines
923 B
TypeScript
/*
|
|
MIT License
|
|
|
|
Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
|
|
This source code is licensed under the MIT license found in the
|
|
LICENSE file in the /app/soapbox/features/compose/editor directory.
|
|
*/
|
|
|
|
import { CodeHighlightNode, CodeNode } from '@lexical/code';
|
|
import { HashtagNode } from '@lexical/hashtag';
|
|
import { AutoLinkNode, LinkNode } from '@lexical/link';
|
|
import { ListItemNode, ListNode } from '@lexical/list';
|
|
import { HorizontalRuleNode } from '@lexical/react/LexicalHorizontalRuleNode';
|
|
import { HeadingNode, QuoteNode } from '@lexical/rich-text';
|
|
|
|
import { MentionNode } from './nodes/mention-node';
|
|
|
|
import type { Klass, LexicalNode } from 'lexical';
|
|
|
|
const ComposeNodes: Array<Klass<LexicalNode>> = [
|
|
HeadingNode,
|
|
QuoteNode,
|
|
CodeNode,
|
|
CodeHighlightNode,
|
|
AutoLinkNode,
|
|
LinkNode,
|
|
ListItemNode,
|
|
ListNode,
|
|
HorizontalRuleNode,
|
|
HashtagNode,
|
|
MentionNode,
|
|
];
|
|
|
|
export default ComposeNodes;
|