once<K extends string>(name: K, callback: (event: EditorEvent<MappedEvent<T, K>>) => void, prepend?: boolean): this;
has(name: string): boolean;
}
-declare const enum UndoLevelType {
- Fragmented = "fragmented",
- Complete = "complete"
-}
+type UndoLevelType = 'fragmented' | 'complete';
interface BaseUndoLevel {
type: UndoLevelType;
bookmark: Bookmark | null;
beforeBookmark: Bookmark | null;
}
interface FragmentedUndoLevel extends BaseUndoLevel {
- type: UndoLevelType.Fragmented;
+ type: 'fragmented';
fragments: string[];
content: '';
}
interface CompleteUndoLevel extends BaseUndoLevel {
- type: UndoLevelType.Complete;
+ type: 'complete';
fragments: null;
content: string;
}
}
interface IframeSpec extends FormComponentWithLabelSpec {
type: 'iframe';
+ border?: boolean;
sandboxed?: boolean;
+ streamContent?: boolean;
transparent?: boolean;
}
interface ImagePreviewSpec extends FormComponentSpec {
maximized?: boolean;
enabled?: boolean;
}
+type Alignment = 'start' | 'center' | 'end';
interface LabelSpec {
type: 'label';
label: string;
items: BodyComponentSpec[];
+ align?: Alignment;
}
interface ListBoxSingleItemSpec {
text: string;
title: string;
size?: DialogSize;
body: TabPanelSpec | PanelSpec;
- buttons: DialogFooterButtonSpec[];
+ buttons?: DialogFooterButtonSpec[];
initialData?: Partial<T>;
onAction?: DialogActionHandler<T>;
onChange?: DialogChangeHandler<T>;
forced_root_block?: boolean | string;
forced_root_block_attrs?: Record<string, string>;
inline_styles?: boolean;
+ pad_empty_with_br?: boolean;
preserve_cdata?: boolean;
remove_trailing_brs?: boolean;
root_name?: string;
export { Ui_d_Registry as Registry, PublicDialog_d as Dialog, PublicInlineContent_d as InlineContent, PublicMenu_d as Menu, PublicView_d as View, PublicSidebar_d as Sidebar, PublicToolbar_d as Toolbar, Ui_d_EditorUiApi as EditorUiApi, Ui_d_EditorUi as EditorUi, };
}
interface WindowParams {
- readonly inline?: 'cursor' | 'toolbar';
+ readonly inline?: 'cursor' | 'toolbar' | 'bottom';
readonly ariaAttrs?: boolean;
+ readonly persistent?: boolean;
}
type InstanceApi<T extends DialogData> = UrlDialogInstanceApi | DialogInstanceApi<T>;
interface WindowManagerImpl {
formats?: Formats;
format_noneditable_selector?: string;
height?: number | string;
+ help_accessibility?: boolean;
hidden_input?: boolean;
highlight_on_focus?: boolean;
icons?: string;
noneditable_regexp?: RegExp | RegExp[];
nowrap?: boolean;
object_resizing?: boolean | string;
+ pad_empty_with_br?: boolean;
paste_as_text?: boolean;
paste_block_drop?: boolean;
paste_data_images?: boolean;
noneditable_class: string;
noneditable_regexp: RegExp[];
object_resizing: string;
+ pad_empty_with_br: boolean;
paste_as_text: boolean;
preview_styles: string;
promotion: boolean;