pleroma/app/soapbox/features/compose/editor/nodes.ts
marcin mikołajczak f81b5d9aa8 WIP mentions plugin
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2023-03-11 00:17:54 +01:00

32 lines
839 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 { 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,
HorizontalRuleNode,
HashtagNode,
MentionNode,
];
export default ComposeNodes;