UNPKG

@rtdui/editor

Version:

React rich text editor based on tiptap

44 lines (43 loc) 5.2 kB
import type { Editor as EditorType } from "@tiptap/react"; import type { ControlLabels } from "./constrolLabels"; export interface TiptapEditorProps extends React.ComponentPropsWithoutRef<"div"> { /** Tiptap editor instance */ editor: EditorType; /** Labels that are used in controls */ labels?: Partial<ControlLabels>; /** Child editor components */ children: React.ReactNode; } export declare const EditorControl_: import("react").ForwardRefExoticComponent<TiptapEditorProps & import("react").RefAttributes<HTMLDivElement>>; export declare const EditorControl: import("react").ForwardRefExoticComponent<TiptapEditorProps & import("react").RefAttributes<HTMLDivElement>> & { ControlsGroup: import("react").ForwardRefExoticComponent<import("./ControlsGroup").RichTextEditorControlsGroupProps & import("react").RefAttributes<HTMLDivElement>>; Toolbar: import("react").ForwardRefExoticComponent<import("./ToolbarControl").ToolbarControlProps & import("react").RefAttributes<HTMLDivElement>>; Bold: import("react").ForwardRefExoticComponent<import("./ControlBase").ControlBaseProps & import("react").RefAttributes<HTMLButtonElement>>; Italic: import("react").ForwardRefExoticComponent<import("./ControlBase").ControlBaseProps & import("react").RefAttributes<HTMLButtonElement>>; Strikethrough: import("react").ForwardRefExoticComponent<import("./ControlBase").ControlBaseProps & import("react").RefAttributes<HTMLButtonElement>>; Underline: import("react").ForwardRefExoticComponent<import("./ControlBase").ControlBaseProps & import("react").RefAttributes<HTMLButtonElement>>; ClearFormatting: import("react").ForwardRefExoticComponent<import("./ControlBase").ControlBaseProps & import("react").RefAttributes<HTMLButtonElement>>; H1: import("react").ForwardRefExoticComponent<import("./ControlBase").ControlBaseProps & import("react").RefAttributes<HTMLButtonElement>>; H2: import("react").ForwardRefExoticComponent<import("./ControlBase").ControlBaseProps & import("react").RefAttributes<HTMLButtonElement>>; H3: import("react").ForwardRefExoticComponent<import("./ControlBase").ControlBaseProps & import("react").RefAttributes<HTMLButtonElement>>; H4: import("react").ForwardRefExoticComponent<import("./ControlBase").ControlBaseProps & import("react").RefAttributes<HTMLButtonElement>>; H5: import("react").ForwardRefExoticComponent<import("./ControlBase").ControlBaseProps & import("react").RefAttributes<HTMLButtonElement>>; H6: import("react").ForwardRefExoticComponent<import("./ControlBase").ControlBaseProps & import("react").RefAttributes<HTMLButtonElement>>; BulletList: import("react").ForwardRefExoticComponent<import("./ControlBase").ControlBaseProps & import("react").RefAttributes<HTMLButtonElement>>; OrderedList: import("react").ForwardRefExoticComponent<import("./ControlBase").ControlBaseProps & import("react").RefAttributes<HTMLButtonElement>>; Unlink: import("react").ForwardRefExoticComponent<import("./ControlBase").ControlBaseProps & import("react").RefAttributes<HTMLButtonElement>>; Blockquote: import("react").ForwardRefExoticComponent<import("./ControlBase").ControlBaseProps & import("react").RefAttributes<HTMLButtonElement>>; AlignLeft: import("react").ForwardRefExoticComponent<import("./ControlBase").ControlBaseProps & import("react").RefAttributes<HTMLButtonElement>>; AlignRight: import("react").ForwardRefExoticComponent<import("./ControlBase").ControlBaseProps & import("react").RefAttributes<HTMLButtonElement>>; AlignCenter: import("react").ForwardRefExoticComponent<import("./ControlBase").ControlBaseProps & import("react").RefAttributes<HTMLButtonElement>>; AlignJustify: import("react").ForwardRefExoticComponent<import("./ControlBase").ControlBaseProps & import("react").RefAttributes<HTMLButtonElement>>; Superscript: import("react").ForwardRefExoticComponent<import("./ControlBase").ControlBaseProps & import("react").RefAttributes<HTMLButtonElement>>; Subscript: import("react").ForwardRefExoticComponent<import("./ControlBase").ControlBaseProps & import("react").RefAttributes<HTMLButtonElement>>; Code: import("react").ForwardRefExoticComponent<import("./ControlBase").ControlBaseProps & import("react").RefAttributes<HTMLButtonElement>>; CodeBlock: import("react").ForwardRefExoticComponent<import("./ControlBase").ControlBaseProps & import("react").RefAttributes<HTMLButtonElement>>; Highlight: import("react").ForwardRefExoticComponent<import("./ControlBase").ControlBaseProps & import("react").RefAttributes<HTMLButtonElement>>; Hr: import("react").ForwardRefExoticComponent<import("./ControlBase").ControlBaseProps & import("react").RefAttributes<HTMLButtonElement>>; UnsetColor: import("react").ForwardRefExoticComponent<import("./ControlBase").ControlBaseProps & import("react").RefAttributes<HTMLButtonElement>>; Image: import("react").ForwardRefExoticComponent<import("./ControlBase").ControlBaseProps & import("react").RefAttributes<HTMLButtonElement>>; Table: import("react").ForwardRefExoticComponent<import("./ControlBase").ControlBaseProps & import("react").RefAttributes<HTMLButtonElement>>; };