|
|
|
@ -1,4 +1,6 @@ |
|
|
|
import ComponentTextView from '../dom_components/view/ComponentTextView'; |
|
|
|
import type ComponentTextView from '../dom_components/view/ComponentTextView'; |
|
|
|
import type RichTextEditor from './model/RichTextEditor'; |
|
|
|
import type { RichTextEditorAction } from './model/RichTextEditor'; |
|
|
|
|
|
|
|
export interface ModelRTE { |
|
|
|
currentView?: ComponentTextView; |
|
|
|
@ -10,6 +12,12 @@ export interface RteDisableResult { |
|
|
|
forceSync?: boolean; |
|
|
|
} |
|
|
|
|
|
|
|
export interface RichTextEditorCustomEventProps { |
|
|
|
enabled: boolean; |
|
|
|
container: HTMLElement; |
|
|
|
actions: RichTextEditorAction[]; |
|
|
|
} |
|
|
|
|
|
|
|
/**{START_EVENTS}*/ |
|
|
|
export enum RichTextEditorEvents { |
|
|
|
/** |
|
|
|
@ -35,5 +43,11 @@ export enum RichTextEditorEvents { |
|
|
|
} |
|
|
|
/**{END_EVENTS}*/ |
|
|
|
|
|
|
|
export interface RichTextEditorEventCallback { |
|
|
|
[RichTextEditorEvents.enable]: [ComponentTextView, RichTextEditor]; |
|
|
|
[RichTextEditorEvents.disable]: [ComponentTextView, RichTextEditor | undefined]; |
|
|
|
[RichTextEditorEvents.custom]: [RichTextEditorCustomEventProps]; |
|
|
|
} |
|
|
|
|
|
|
|
// need this to avoid the TS documentation generator to break
|
|
|
|
export default RichTextEditorEvents; |
|
|
|
|