pleroma/app/soapbox/features/compose/editor/plugins/link-plugin.tsx
marcin mikołajczak 1d8b686928 Lexical: modify headers
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2023-07-31 20:24:08 +02:00

16 lines
503 B
TypeScript

/**
* This source code is derived from code from Meta Platforms, Inc.
* and affiliates, licensed under the MIT license located in the
* LICENSE file in the /app/soapbox/features/compose/editor directory.
*/
import { LinkPlugin as LexicalLinkPlugin } from '@lexical/react/LexicalLinkPlugin';
import * as React from 'react';
import { validateUrl } from '../utils/url';
const LinkPlugin = (): JSX.Element => {
return <LexicalLinkPlugin validateUrl={validateUrl} />;
};
export default LinkPlugin;