1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | import { IEventPropTypes } from './components/EditorPropTypes';
|
9 | import { IAllProps } from './components/Editor';
|
10 | import { Editor as TinyMCEEditor, EditorEvent } from 'tinymce';
|
11 | export declare const isFunction: (x: unknown) => x is Function;
|
12 | declare type PropLookup = <K extends keyof IAllProps>(key: K) => IAllProps[K] | undefined;
|
13 | export declare const configHandlers2: <H>(handlerLookup: PropLookup, on: (name: string, handler: H) => void, off: (name: string, handler: H) => void, adapter: <K extends keyof import("./Events").IEvents>(lookup: PropLookup, key: K) => H, prevProps: Partial<IAllProps>, props: Partial<IAllProps>, boundHandlers: Record<string, H>) => void;
|
14 | export declare const configHandlers: (editor: TinyMCEEditor, prevProps: Partial<IAllProps>, props: Partial<IAllProps>, boundHandlers: Record<string, (event: EditorEvent<any>) => unknown>, lookup: PropLookup) => void;
|
15 | export declare const uuid: (prefix: string) => string;
|
16 | export declare const isTextareaOrInput: (element: Element | null) => element is HTMLInputElement | HTMLTextAreaElement;
|
17 | export declare const mergePlugins: (initPlugins: string | string[] | undefined, inputPlugins: string | string[] | undefined) => string[];
|
18 | export declare const isBeforeInputEventAvailable: () => boolean;
|
19 | export declare const isInDoc: (elem: Node) => boolean;
|
20 | export declare const setMode: (editor: TinyMCEEditor | undefined, mode: 'readonly' | 'design') => void;
|
21 | export {};
|