UNPKG

mui-tiptap

Version:

A Material-UI (MUI) styled WYSIWYG rich text editor, using Tiptap

22 lines (21 loc) 786 B
import type { NodeViewProps } from "@tiptap/core"; import type { Node as ProseMirrorNode } from "@tiptap/pm/model"; import type ResizableImage from "./ResizableImage"; interface ImageNodeAttributes extends Record<string, unknown> { src: string; alt?: string | null; title?: string | null; } interface ResizableImageNodeAttributes extends ImageNodeAttributes { width: string | number | null; aspectRatio: string | null; } interface ResizableImageNode extends ProseMirrorNode { attrs: ResizableImageNodeAttributes; } interface Props extends NodeViewProps { node: ResizableImageNode; extension: typeof ResizableImage; } declare function ResizableImageComponent(props: Props): import("react/jsx-runtime").JSX.Element; export default ResizableImageComponent;