@ones-editor/editor 2.9.8-beta.46 → 2.9.8-beta.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,6 +5,7 @@ export default class ContextMenuCommandItems {
|
|
|
5
5
|
private clipboardPermission;
|
|
6
6
|
private isSecureContext;
|
|
7
7
|
private externalActionHandleMap;
|
|
8
|
+
private target;
|
|
8
9
|
constructor(editor: OnesEditor);
|
|
9
10
|
get hasClipboardReadPermission(): boolean;
|
|
10
11
|
get hasClipboardWritePermission(): boolean;
|
|
@@ -18,10 +19,11 @@ export default class ContextMenuCommandItems {
|
|
|
18
19
|
destroy(): void;
|
|
19
20
|
handleActionByExternal: (item: CommandItem) => unknown;
|
|
20
21
|
getPasteCommandItem: () => Promise<CommandItem>;
|
|
21
|
-
getCommandItems: () => Promise<CommandItem[]>;
|
|
22
|
+
getCommandItems: (target?: HTMLElement | null) => Promise<CommandItem[]>;
|
|
22
23
|
private getExternalContextMenuOptions;
|
|
23
24
|
private secureEnvTips;
|
|
24
25
|
private isFocusImageBlock;
|
|
26
|
+
private getFocusImageBlock;
|
|
25
27
|
private isFocusImageTypeEmbed;
|
|
26
28
|
private isEmptyImageTypeEmbed;
|
|
27
29
|
}
|