UNPKG

communication-react-19

Version:

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

30 lines 1.07 kB
import type { PluginEvent, EditorPlugin, IEditor } from 'roosterjs-content-model-types'; /** * CopyPastePlugin is a plugin for handling copy and paste events in the editor. */ export default class CopyPastePlugin implements EditorPlugin { private editor; onPaste?: (event: { content: DocumentFragment; }) => void; onInsertInlineImage?: (imageAttributes: Record<string, string>) => void; private imageBase64DataMap; getName(): string; initialize(editor: IEditor): void; dispose(): void; private handleInlineImage; onPluginEvent(event: PluginEvent): void; } /** * @internal * Exported only for unit testing */ export declare const handleBeforePasteEvent: (event: PluginEvent, onPaste?: (event: { content: DocumentFragment; }) => void) => void; /** * Update the scroll position of the editor after pasting content to ensure the content is visible. * @param event - The plugin event. */ export declare const scrollToBottomAfterContentPaste: (event: PluginEvent) => void; //# sourceMappingURL=CopyPastePlugin.d.ts.map