pleroma/app/soapbox/features/compose/editor/nodes.ts
marcin mikołajczak 5d062d07ac license?
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2023-01-15 22:50:31 +01:00

27 lines
714 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 { AutoLinkNode, LinkNode } from '@lexical/link';
import { HorizontalRuleNode } from '@lexical/react/LexicalHorizontalRuleNode';
import { HeadingNode, QuoteNode } from '@lexical/rich-text';
import type { Klass, LexicalNode } from 'lexical';
const PlaygroundNodes: Array<Klass<LexicalNode>> = [
HeadingNode,
QuoteNode,
CodeNode,
CodeHighlightNode,
AutoLinkNode,
LinkNode,
HorizontalRuleNode,
];
export default PlaygroundNodes;