mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 10:54:52 +00:00
Bump tinyMCE from 7.7.1 to 7.9.0
This commit is contained in:
43
plugins/tinymce/tinymce.d.ts
vendored
43
plugins/tinymce/tinymce.d.ts
vendored
@@ -730,6 +730,7 @@ interface CardMenuItemSpec extends Omit<CommonMenuItemSpec, 'text' | 'shortcut'>
|
||||
interface ChoiceMenuItemSpec extends CommonMenuItemSpec {
|
||||
type?: 'choiceitem';
|
||||
icon?: string;
|
||||
label?: string;
|
||||
}
|
||||
interface ChoiceMenuItemInstanceApi extends CommonMenuItemInstanceApi {
|
||||
isActive: () => boolean;
|
||||
@@ -751,6 +752,19 @@ type ContextMenuContents = string | ContextMenuItem | SeparatorMenuItemSpec | Co
|
||||
interface ContextMenuApi {
|
||||
update: (element: Element) => string | Array<ContextMenuContents>;
|
||||
}
|
||||
interface ResetImageItemSpec extends CommonMenuItemSpec {
|
||||
icon: string;
|
||||
type: 'resetimage';
|
||||
label: string;
|
||||
tooltip?: string;
|
||||
value: string;
|
||||
}
|
||||
interface ImageMenuItemSpec extends CommonMenuItemSpec {
|
||||
type?: 'imageitem';
|
||||
url: string;
|
||||
label?: string;
|
||||
tooltip?: string;
|
||||
}
|
||||
interface FancyActionArgsMap {
|
||||
inserttable: {
|
||||
numRows: number;
|
||||
@@ -759,6 +773,9 @@ interface FancyActionArgsMap {
|
||||
colorswatch: {
|
||||
value: string;
|
||||
};
|
||||
imageselect: {
|
||||
value: string;
|
||||
};
|
||||
}
|
||||
interface BaseFancyMenuItemSpec<T extends keyof FancyActionArgsMap> {
|
||||
type: 'fancymenuitem';
|
||||
@@ -779,7 +796,15 @@ interface ColorSwatchMenuItemSpec extends BaseFancyMenuItemSpec<'colorswatch'> {
|
||||
storageKey?: string;
|
||||
};
|
||||
}
|
||||
type FancyMenuItemSpec = InsertTableMenuItemSpec | ColorSwatchMenuItemSpec;
|
||||
interface ImageSelectMenuItemSpec extends BaseFancyMenuItemSpec<'imageselect'> {
|
||||
fancytype: 'imageselect';
|
||||
select?: (value: string) => boolean;
|
||||
initData: {
|
||||
columns: number;
|
||||
items: (ImageMenuItemSpec | ResetImageItemSpec)[];
|
||||
};
|
||||
}
|
||||
type FancyMenuItemSpec = InsertTableMenuItemSpec | ColorSwatchMenuItemSpec | ImageSelectMenuItemSpec;
|
||||
interface MenuItemSpec extends CommonMenuItemSpec {
|
||||
type?: 'menuitem';
|
||||
icon?: string;
|
||||
@@ -820,6 +845,7 @@ interface MenuButtonFetchContext {
|
||||
pattern: string;
|
||||
}
|
||||
interface BaseMenuButtonSpec {
|
||||
buttonType?: 'default' | 'bordered';
|
||||
text?: string;
|
||||
tooltip?: string;
|
||||
icon?: string;
|
||||
@@ -835,6 +861,7 @@ interface BaseMenuButtonInstanceApi {
|
||||
setEnabled: (state: boolean) => void;
|
||||
isActive: () => boolean;
|
||||
setActive: (state: boolean) => void;
|
||||
setTooltip: (tooltip: string) => void;
|
||||
setText: (text: string) => void;
|
||||
setIcon: (icon: string) => void;
|
||||
}
|
||||
@@ -844,10 +871,10 @@ interface ToolbarMenuButtonSpec extends BaseMenuButtonSpec {
|
||||
}
|
||||
interface ToolbarMenuButtonInstanceApi extends BaseMenuButtonInstanceApi {
|
||||
}
|
||||
type ToolbarSplitButtonItemTypes = ChoiceMenuItemSpec | SeparatorMenuItemSpec;
|
||||
type ToolbarSplitButtonItemTypes = ChoiceMenuItemSpec | SeparatorMenuItemSpec | ImageMenuItemSpec;
|
||||
type SuccessCallback = (menu: ToolbarSplitButtonItemTypes[]) => void;
|
||||
type SelectPredicate = (value: string) => boolean;
|
||||
type PresetTypes = 'color' | 'normal' | 'listpreview';
|
||||
type PresetTypes = 'color' | 'normal' | 'listpreview' | 'imageselector';
|
||||
type ColumnTypes$1 = number | 'auto';
|
||||
interface ToolbarSplitButtonSpec {
|
||||
type?: 'splitbutton';
|
||||
@@ -1143,8 +1170,12 @@ interface ToolbarGroupSpec {
|
||||
label?: string;
|
||||
items: string[];
|
||||
}
|
||||
interface ContextToolbarLaunchButtonApi extends BaseToolbarButtonSpec<BaseToolbarButtonInstanceApi> {
|
||||
type?: 'contexttoolbarbutton';
|
||||
}
|
||||
interface ContextToolbarSpec extends ContextBarSpec {
|
||||
type?: 'contexttoolbar';
|
||||
launch?: ContextToolbarLaunchButtonApi;
|
||||
items: string | ToolbarGroupSpec[];
|
||||
}
|
||||
type PublicDialog_d_AlertBannerSpec = AlertBannerSpec;
|
||||
@@ -1448,6 +1479,8 @@ interface DomParserSettings {
|
||||
convert_fonts_to_spans?: boolean;
|
||||
convert_unsafe_embeds?: boolean;
|
||||
document?: Document;
|
||||
extended_mathml_elements?: string[];
|
||||
extended_mathml_attributes?: string[];
|
||||
fix_list_elements?: boolean;
|
||||
font_size_legacy_values?: string;
|
||||
forced_root_block?: boolean | string;
|
||||
@@ -1933,6 +1966,8 @@ interface BaseEditorOptions {
|
||||
end_container_on_empty_block?: boolean | string;
|
||||
entities?: string;
|
||||
entity_encoding?: EntityEncoding;
|
||||
extended_mathml_attributes?: string[];
|
||||
extended_mathml_elements?: string[];
|
||||
extended_valid_elements?: string;
|
||||
event_root?: string;
|
||||
file_picker_callback?: FilePickerCallback;
|
||||
@@ -2003,6 +2038,7 @@ interface BaseEditorOptions {
|
||||
noneditable_regexp?: RegExp | RegExp[];
|
||||
nowrap?: boolean;
|
||||
object_resizing?: boolean | string;
|
||||
onboarding?: boolean;
|
||||
pad_empty_with_br?: boolean;
|
||||
paste_as_text?: boolean;
|
||||
paste_block_drop?: boolean;
|
||||
@@ -2833,6 +2869,7 @@ interface Theme {
|
||||
renderUI?: () => Promise<RenderResult> | RenderResult;
|
||||
getNotificationManagerImpl?: () => NotificationManagerImpl;
|
||||
getWindowManagerImpl?: () => WindowManagerImpl;
|
||||
getPromotionElement?: () => HTMLElement | null;
|
||||
}
|
||||
type ThemeManager = AddOnManager<void | Theme>;
|
||||
interface EditorConstructor {
|
||||
|
||||
Reference in New Issue
Block a user