text-editor-drcsystems
Version:
Text Editor Made with Love by DRC Systems
23 lines (22 loc) • 721 B
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.
*
*/
/// <reference types="react" />
import type { LexicalEditor, NodeKey } from 'lexical';
import './ImageNode.css';
export default function ImageComponent({ src, altText, nodeKey, width, height, maxWidth, resizable, showCaption, caption, captionsEnabled, }: {
altText: string;
caption: LexicalEditor;
height: 'inherit' | number;
maxWidth: number;
nodeKey: NodeKey;
resizable: boolean;
showCaption: boolean;
src: string;
width: 'inherit' | number;
captionsEnabled: boolean;
}): JSX.Element;