UNPKG

communication-react-19

Version:

React library for building modern communication user experiences utilizing Azure Communication Services (React 19 compatible fork)

73 lines 2.67 kB
import type { BorderFormat, DatasetFormat, ModelToDomContext } from 'roosterjs-content-model-types'; /** * Plugin event type for RoosterJS plugins * @private */ export declare enum PluginEventType { EditorReady = "editorReady", BeforeDispose = "beforeDispose", ContentChanged = "contentChanged", BeforeSetContent = "beforeSetContent", Input = "input", KeyDown = "keyDown", BeforeCutCopy = "beforeCutCopy", BeforePaste = "beforePaste", ZoomChanged = "zoomChanged", MouseUp = "mouseUp", CompositionEnd = "compositionEnd" } /** * ContentChanged event source for RoosterJS * @private */ export declare enum ContentChangedEventSource { Paste = "Paste" } /** * Applies the border format to the specified element. * If the element is an HTMLTableCellElement, it skips setting editing info * and to use classes instead of inline styles. * For all other cases, the default format applier is used. */ export declare const borderApplier: (format: BorderFormat, element: HTMLElement, context: ModelToDomContext) => void; /** * Applies the dataset format to the given HTML element. * If the element is an HTMLTableElement, it skips setting editing info * and to use classes instead of inline styles. * For all other cases, it applies the default formats. */ export declare const dataSetApplier: (format: DatasetFormat, element: HTMLElement, context: ModelToDomContext) => void; /** * @internal */ export declare const getPreviousInlineImages: (content?: string) => Record<string, string>[]; /** * @internal */ export declare const getRemovedInlineImages: (content: string, previousInlineImages: Record<string, string>[]) => Record<string, string>[]; /** * @internal */ export declare const getInsertedInlineImages: (content: string, previousInlineImages: NodeListOf<HTMLImageElement>) => HTMLImageElement[]; /** * @internal */ export declare const getInlineImageAttributes: (image: HTMLImageElement) => Record<string, string>; /** * @internal */ /** * Update the scroll position of the editor to ensure the content is visible. */ export declare const scrollToBottomRichTextEditor: () => void; /** * Revoke the blob urls in the removedInlineImages and remove them from the currentLocalBlobMap * @internal */ export declare const removeLocalBlobs: (currentLocalBlobMap: Record<string, string>, removedInlineImages: Record<string, string>[]) => void; /** * Revoke all the blob urls in the currentLocalBlobMap and clean up the currentLocalBlobMap * @internal */ export declare const cleanAllLocalBlobs: (currentLocalBlobMap: Record<string, string>) => void; //# sourceMappingURL=RichTextEditorUtils.d.ts.map