1.5 KiB
1.5 KiB
Change events
Related events in editor changes
Type: ChangeEventInterface
Constructor
new (engine: EngineInterface, options: ChangeEventOptions = {}): ChangeEventInterface;
Attributes
isComposing
Whether to combine input
isSelecting
Is it being selected
Method
isCardInput
Is it entered in the card
isCardInput(e: Event): boolean;
onInput
Input event
onInput(callback: (event?: Event) => void): void;
onSelect
Cursor selection event
onSelect(callback: (event?: Event) => void): void;
onPaste
Paste event
onPaste(
callback: (data: ClipboardData & {isPasteText: boolean }) => void,
): void;
onDrop
Drag event
onDrop(
callback: (params: {
event: DragEvent;
range?: RangeInterface;
card?: CardInterface;
files: Array<File | null>;
}) => void,
): void;
onDocument
Bind the document event
onDocument(
eventType: string,
listener: EventListener,
index?: number
): void;
onWindow
Bind window events
onWindow(
eventType: string,
listener: EventListener,
index?: number
): void;
onContainer
Binding editor container node event
onContainer(eventType: string, listener: EventListener, index?: number): void;
onRoot
Binding editor root node event
onRoot(eventType: string, listener: EventListener, index?: number): void;
destroy
destroy
destroy(): void;