communication-react-19
Version:
React library for building modern communication user experiences utilizing Azure Communication Services (React 19 compatible fork)
24 lines • 1.02 kB
TypeScript
import type { ContentModelFormatState, EditorPlugin, IEditor, PluginEvent } from 'roosterjs-content-model-types';
/**
* KeyboardInputPlugin is a plugin for handling keyboard events in the editor.
*/
export declare class RichTextToolbarPlugin implements EditorPlugin {
private formatState;
private editor;
onFormatChanged: ((formatState: ContentModelFormatState) => void) | null;
getName(): string;
initialize(editor: IEditor): void;
dispose(): void;
onPluginEvent(event: PluginEvent): void;
/**
* Handles the click event of a toolbar button.
* @param buttonAction - The action to be performed when the button is clicked.
*/
onToolbarButtonClick(buttonAction: (editor: IEditor) => void): void;
/**
* Updates the format state of the rich text editor and triggers the `onFormatChanged` callback
* if there is any difference between the new and the current format states.
*/
updateFormat(): void;
}
//# sourceMappingURL=RichTextToolbarPlugin.d.ts.map