import { RenderSaveProps, RenderEditProps } from "../../core/blocks/BlockDefinition"; import RichTextBase, { RichTextSaveProps, RichTextEditProps } from "./abstract/RichTextBase"; /** * RichText instruction. */ export default class RichText extends RichTextBase { options: { tag: keyof HTMLElementTagNameMap; name: string; class: string; default: string; placeholder: string; multiline: boolean | "li" | "p"; keepPlaceholderOnFocus?: boolean; }; /** * Gets the base attributes of the rich text. * * @param props The props. * @param i The number child this is. * * @returns The base attributes. */ protected getBaseAttributes(props: RenderSaveProps | RenderEditProps, i: number): RichTextSaveProps | RichTextEditProps; }