rhino-editor
Version:
A custom element wrapped rich text editor
19 lines (18 loc) • 581 B
TypeScript
import { Transaction } from "@tiptap/pm/state";
import { BaseEvent } from "./base-event.js";
export interface SelectionChangeProps {
transaction: Transaction;
}
/**
* Fires before the editor has been created
*/
export declare class SelectionChangeEvent extends BaseEvent {
static eventName: "rhino-selection-change";
transaction: Transaction;
constructor({ transaction }: SelectionChangeProps, options?: EventInit | undefined);
}
declare global {
interface GlobalEventHandlersEventMap {
[SelectionChangeEvent.eventName]: SelectionChangeEvent;
}
}