@wangeditor-next/video-module 6.4.1 → 6.4.3
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.
- package/dist/index.d.ts +8 -0
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +10 -12
- package/dist/core/src/config/index.d.ts +0 -13
- package/dist/core/src/config/interface.d.ts +0 -317
- package/dist/core/src/config/register.d.ts +0 -12
- package/dist/core/src/config/style-mode.d.ts +0 -8
- package/dist/core/src/constants/index.d.ts +0 -1
- package/dist/core/src/constants/svg.d.ts +0 -12
- package/dist/core/src/create/bind-node-relation.d.ts +0 -15
- package/dist/core/src/create/create-editor.d.ts +0 -10
- package/dist/core/src/create/create-toolbar.d.ts +0 -14
- package/dist/core/src/create/helper.d.ts +0 -37
- package/dist/core/src/create/index.d.ts +0 -8
- package/dist/core/src/editor/dom-editor.d.ts +0 -154
- package/dist/core/src/editor/interface.d.ts +0 -90
- package/dist/core/src/editor/plugins/with-config.d.ts +0 -7
- package/dist/core/src/editor/plugins/with-content.d.ts +0 -7
- package/dist/core/src/editor/plugins/with-dom.d.ts +0 -10
- package/dist/core/src/editor/plugins/with-emitter.d.ts +0 -7
- package/dist/core/src/editor/plugins/with-event-data.d.ts +0 -7
- package/dist/core/src/editor/plugins/with-history.d.ts +0 -7
- package/dist/core/src/editor/plugins/with-max-length.d.ts +0 -7
- package/dist/core/src/editor/plugins/with-selection.d.ts +0 -7
- package/dist/core/src/i18n/index.d.ts +0 -32
- package/dist/core/src/index.d.ts +0 -45
- package/dist/core/src/menus/bar/HoverBar.d.ts +0 -48
- package/dist/core/src/menus/bar/Toolbar.d.ts +0 -38
- package/dist/core/src/menus/bar-item/BaseButton.d.ts +0 -26
- package/dist/core/src/menus/bar-item/DropPanelButton.d.ts +0 -14
- package/dist/core/src/menus/bar-item/GroupButton.d.ts +0 -17
- package/dist/core/src/menus/bar-item/ModalButton.d.ts +0 -25
- package/dist/core/src/menus/bar-item/Select.d.ts +0 -22
- package/dist/core/src/menus/bar-item/SimpleButton.d.ts +0 -11
- package/dist/core/src/menus/bar-item/index.d.ts +0 -24
- package/dist/core/src/menus/bar-item/tooltip.d.ts +0 -6
- package/dist/core/src/menus/helpers/helpers.d.ts +0 -18
- package/dist/core/src/menus/helpers/position.d.ts +0 -36
- package/dist/core/src/menus/index.d.ts +0 -9
- package/dist/core/src/menus/interface.d.ts +0 -65
- package/dist/core/src/menus/panel-and-modal/BaseClass.d.ts +0 -26
- package/dist/core/src/menus/panel-and-modal/DropPanel.d.ts +0 -12
- package/dist/core/src/menus/panel-and-modal/Modal.d.ts +0 -44
- package/dist/core/src/menus/panel-and-modal/SelectList.d.ts +0 -20
- package/dist/core/src/menus/register.d.ts +0 -15
- package/dist/core/src/parse-html/helper.d.ts +0 -10
- package/dist/core/src/parse-html/index.d.ts +0 -35
- package/dist/core/src/parse-html/parse-common-elem-html.d.ts +0 -15
- package/dist/core/src/parse-html/parse-elem-html.d.ts +0 -15
- package/dist/core/src/parse-html/parse-text-elem-html.d.ts +0 -16
- package/dist/core/src/render/element/getRenderElem.d.ts +0 -11
- package/dist/core/src/render/element/renderElement.d.ts +0 -9
- package/dist/core/src/render/element/renderStyle.d.ts +0 -15
- package/dist/core/src/render/helper.d.ts +0 -6
- package/dist/core/src/render/index.d.ts +0 -27
- package/dist/core/src/render/node2Vnode.d.ts +0 -15
- package/dist/core/src/render/text/genVnode.d.ts +0 -9
- package/dist/core/src/render/text/renderStyle.d.ts +0 -15
- package/dist/core/src/render/text/renderText.d.ts +0 -9
- package/dist/core/src/text-area/TextArea.d.ts +0 -52
- package/dist/core/src/text-area/event-handlers/beforeInput.d.ts +0 -8
- package/dist/core/src/text-area/event-handlers/blur.d.ts +0 -8
- package/dist/core/src/text-area/event-handlers/click.d.ts +0 -8
- package/dist/core/src/text-area/event-handlers/composition.d.ts +0 -27
- package/dist/core/src/text-area/event-handlers/copy.d.ts +0 -8
- package/dist/core/src/text-area/event-handlers/cut.d.ts +0 -8
- package/dist/core/src/text-area/event-handlers/drag.d.ts +0 -9
- package/dist/core/src/text-area/event-handlers/drop.d.ts +0 -8
- package/dist/core/src/text-area/event-handlers/focus.d.ts +0 -8
- package/dist/core/src/text-area/event-handlers/index.d.ts +0 -35
- package/dist/core/src/text-area/event-handlers/keydown.d.ts +0 -8
- package/dist/core/src/text-area/event-handlers/keypress.d.ts +0 -8
- package/dist/core/src/text-area/event-handlers/paste.d.ts +0 -8
- package/dist/core/src/text-area/helpers.d.ts +0 -30
- package/dist/core/src/text-area/place-holder.d.ts +0 -18
- package/dist/core/src/text-area/syncSelection.d.ts +0 -19
- package/dist/core/src/text-area/update-view.d.ts +0 -13
- package/dist/core/src/to-html/elem2html.d.ts +0 -9
- package/dist/core/src/to-html/index.d.ts +0 -44
- package/dist/core/src/to-html/node2html.d.ts +0 -12
- package/dist/core/src/to-html/text2html.d.ts +0 -9
- package/dist/core/src/upload/createUploader.d.ts +0 -14
- package/dist/core/src/upload/createUppyUploader.d.ts +0 -7
- package/dist/core/src/upload/index.d.ts +0 -9
- package/dist/core/src/upload/interface.d.ts +0 -72
- package/dist/core/src/upload.d.ts +0 -5
- package/dist/core/src/utils/dom.d.ts +0 -103
- package/dist/core/src/utils/hotkeys.d.ts +0 -35
- package/dist/core/src/utils/key.d.ts +0 -11
- package/dist/core/src/utils/line.d.ts +0 -14
- package/dist/core/src/utils/sanitize-html.d.ts +0 -5
- package/dist/core/src/utils/ua.d.ts +0 -14
- package/dist/core/src/utils/util.d.ts +0 -28
- package/dist/core/src/utils/vdom.d.ts +0 -34
- package/dist/core/src/utils/weak-maps.d.ts +0 -60
- package/dist/video-module/src/constants/svg.d.ts +0 -15
- package/dist/video-module/src/index.d.ts +0 -8
- package/dist/video-module/src/locale/en.d.ts +0 -24
- package/dist/video-module/src/locale/index.d.ts +0 -5
- package/dist/video-module/src/locale/zh-CN.d.ts +0 -24
- package/dist/video-module/src/module/alignment.d.ts +0 -10
- package/dist/video-module/src/module/custom-types.d.ts +0 -24
- package/dist/video-module/src/module/elem-to-html.d.ts +0 -12
- package/dist/video-module/src/module/helper/insert-video.d.ts +0 -12
- package/dist/video-module/src/module/helper/upload-videos.d.ts +0 -6
- package/dist/video-module/src/module/index.d.ts +0 -7
- package/dist/video-module/src/module/menu/EditVideoSizeMenu.d.ts +0 -25
- package/dist/video-module/src/module/menu/EditVideoSrcMenu.d.ts +0 -26
- package/dist/video-module/src/module/menu/InsertVideoMenu.d.ts +0 -25
- package/dist/video-module/src/module/menu/UploadVideoMenu.d.ts +0 -16
- package/dist/video-module/src/module/menu/VideoAlignMenu.d.ts +0 -18
- package/dist/video-module/src/module/menu/config.d.ts +0 -25
- package/dist/video-module/src/module/menu/index.d.ts +0 -43
- package/dist/video-module/src/module/parse-elem-html.d.ts +0 -14
- package/dist/video-module/src/module/plugin.d.ts +0 -7
- package/dist/video-module/src/module/pre-parse-html.d.ts +0 -15
- package/dist/video-module/src/module/render-elem.d.ts +0 -13
- package/dist/video-module/src/utils/dom.d.ts +0 -29
- package/dist/video-module/src/utils/util.d.ts +0 -12
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description upload interface
|
|
3
|
-
* @author wangfupeng
|
|
4
|
-
*/
|
|
5
|
-
import type { IDomEditor } from '../editor/interface';
|
|
6
|
-
export type IUploadHeaders = Record<string, string | number>;
|
|
7
|
-
export interface IUploadResultFile {
|
|
8
|
-
name: string;
|
|
9
|
-
type?: string;
|
|
10
|
-
size?: number;
|
|
11
|
-
[key: string]: any;
|
|
12
|
-
}
|
|
13
|
-
export interface IUploadFile {
|
|
14
|
-
name: string;
|
|
15
|
-
type: string;
|
|
16
|
-
size: number;
|
|
17
|
-
data: Blob | File;
|
|
18
|
-
source?: string;
|
|
19
|
-
}
|
|
20
|
-
export interface IUploader {
|
|
21
|
-
addFiles: (files: IUploadFile[]) => void;
|
|
22
|
-
upload: () => Promise<unknown>;
|
|
23
|
-
destroy?: () => void;
|
|
24
|
-
}
|
|
25
|
-
type FilesType = Record<string, any>;
|
|
26
|
-
type InsertFn = (src: string, poster?: string, alt?: string, href?: string) => void | Promise<void>;
|
|
27
|
-
export interface IUploadAdapterContext {
|
|
28
|
-
config: IUploadConfig;
|
|
29
|
-
editor?: IDomEditor;
|
|
30
|
-
}
|
|
31
|
-
export type IUploadAdapter = (context: IUploadAdapterContext) => IUploader;
|
|
32
|
-
interface IBaseUploadConfig {
|
|
33
|
-
fieldName?: string;
|
|
34
|
-
maxFileSize?: number;
|
|
35
|
-
maxNumberOfFiles?: number;
|
|
36
|
-
meta?: Record<string, unknown>;
|
|
37
|
-
metaWithUrl: boolean;
|
|
38
|
-
headers?: IUploadHeaders | ((file: IUploadResultFile) => IUploadHeaders) | undefined;
|
|
39
|
-
withCredentials?: boolean;
|
|
40
|
-
timeout?: number;
|
|
41
|
-
onBeforeUpload?: (files: FilesType) => boolean | FilesType;
|
|
42
|
-
onSuccess: (file: IUploadResultFile, response: any) => void;
|
|
43
|
-
onProgress?: (progress: number) => void;
|
|
44
|
-
onFailed: (file: IUploadResultFile, response: any) => void;
|
|
45
|
-
onError: (file: IUploadResultFile, error: any, res: any) => void;
|
|
46
|
-
allowedFileTypes?: string[];
|
|
47
|
-
customInsert?: (res: any, insertFn: InsertFn) => void;
|
|
48
|
-
customUpload?: (files: File, insertFn: InsertFn, editor: IDomEditor) => void;
|
|
49
|
-
customBrowseAndUpload?: (insertFn: InsertFn) => void;
|
|
50
|
-
uploadAdapter?: IUploadAdapter;
|
|
51
|
-
uppyConfig?: Record<string, any>;
|
|
52
|
-
xhrConfig?: Record<string, any>;
|
|
53
|
-
}
|
|
54
|
-
interface IUploadConfigWithCustomUpload extends IBaseUploadConfig {
|
|
55
|
-
server?: string;
|
|
56
|
-
customUpload: (files: File, insertFn: InsertFn, editor: IDomEditor) => void;
|
|
57
|
-
}
|
|
58
|
-
interface IUploadConfigWithUploadAdapter extends IBaseUploadConfig {
|
|
59
|
-
server?: string;
|
|
60
|
-
uploadAdapter: IUploadAdapter;
|
|
61
|
-
customUpload?: (files: File, insertFn: InsertFn, editor: IDomEditor) => void;
|
|
62
|
-
}
|
|
63
|
-
interface IUploadConfigWithoutCustomUpload extends IBaseUploadConfig {
|
|
64
|
-
server: string;
|
|
65
|
-
customUpload?: never;
|
|
66
|
-
uploadAdapter?: never;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* 配置参考 https://uppy.io/docs/uppy/
|
|
70
|
-
*/
|
|
71
|
-
export type IUploadConfig = IUploadConfigWithCustomUpload | IUploadConfigWithUploadAdapter | IUploadConfigWithoutCustomUpload;
|
|
72
|
-
export {};
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description DOM 操作 part1 - DOM7 文档 https://framework7.io/docs/dom7.html
|
|
3
|
-
* @author wangfupeng
|
|
4
|
-
*/
|
|
5
|
-
import $, { Dom7Array } from 'dom7';
|
|
6
|
-
import DOMNode = globalThis.Node;
|
|
7
|
-
import DOMComment = globalThis.Comment;
|
|
8
|
-
import DOMElement = globalThis.Element;
|
|
9
|
-
import DOMText = globalThis.Text;
|
|
10
|
-
import DOMRange = globalThis.Range;
|
|
11
|
-
import DOMSelection = globalThis.Selection;
|
|
12
|
-
import DOMStaticRange = globalThis.StaticRange;
|
|
13
|
-
export type { Dom7Array } from 'dom7';
|
|
14
|
-
export default $;
|
|
15
|
-
export declare enum NodeType {
|
|
16
|
-
ELEMENT_NODE = 1,
|
|
17
|
-
TEXT_NODE = 3,
|
|
18
|
-
CDATA_SECTION_NODE = 4,
|
|
19
|
-
PROCESSING_INSTRUCTION_NODE = 7,
|
|
20
|
-
COMMENT_NODE = 8,
|
|
21
|
-
DOCUMENT_NODE = 9,
|
|
22
|
-
DOCUMENT_TYPE_NODE = 10,
|
|
23
|
-
DOCUMENT_FRAGMENT_NODE = 11
|
|
24
|
-
}
|
|
25
|
-
export declare const isDocument: (value: any) => value is Document;
|
|
26
|
-
export declare const isShadowRoot: (value: any) => value is ShadowRoot;
|
|
27
|
-
export declare const isDataTransfer: (value: any) => value is DataTransfer;
|
|
28
|
-
export declare const isUnprocessedListElement: (el: Element) => boolean;
|
|
29
|
-
export declare const isHTMLElememt: (value: any) => value is HTMLElement;
|
|
30
|
-
export { DOMComment, DOMElement, DOMNode, DOMRange, DOMSelection, DOMStaticRange, DOMText, };
|
|
31
|
-
export type DOMPoint = [Node, number];
|
|
32
|
-
/**
|
|
33
|
-
* Returns the host window of a DOM node
|
|
34
|
-
*/
|
|
35
|
-
export declare const getDefaultView: (value: any) => Window | null;
|
|
36
|
-
/**
|
|
37
|
-
* Check if a value is a DOM node.
|
|
38
|
-
*/
|
|
39
|
-
export declare const isDOMNode: (value: any) => value is DOMNode;
|
|
40
|
-
/**
|
|
41
|
-
* Check if a DOM node is a comment node.
|
|
42
|
-
*/
|
|
43
|
-
export declare const isDOMComment: (value: any) => value is DOMComment;
|
|
44
|
-
/**
|
|
45
|
-
* Check if a DOM node is an element node.
|
|
46
|
-
*/
|
|
47
|
-
export declare const isDOMElement: (value: any) => value is DOMElement;
|
|
48
|
-
/**
|
|
49
|
-
* Check if a value is a DOM selection.
|
|
50
|
-
*/
|
|
51
|
-
export declare const isDOMSelection: (value: any) => value is DOMSelection;
|
|
52
|
-
/**
|
|
53
|
-
* Check if a DOM node is an element node.
|
|
54
|
-
*/
|
|
55
|
-
export declare const isDOMText: (value: any) => value is DOMText;
|
|
56
|
-
/**
|
|
57
|
-
* Checks whether a paste event is a plaintext-only event.
|
|
58
|
-
*/
|
|
59
|
-
export declare const isPlainTextOnlyPaste: (event: ClipboardEvent) => boolean | null;
|
|
60
|
-
/**
|
|
61
|
-
* Normalize a DOM point so that it always refers to a text node.
|
|
62
|
-
*/
|
|
63
|
-
export declare const normalizeDOMPoint: (domPoint: DOMPoint) => DOMPoint;
|
|
64
|
-
/**
|
|
65
|
-
* Determines wether the active element is nested within a shadowRoot
|
|
66
|
-
*/
|
|
67
|
-
export declare const hasShadowRoot: () => boolean;
|
|
68
|
-
/**
|
|
69
|
-
* Get the element with the specified id
|
|
70
|
-
*/
|
|
71
|
-
export declare const getElementById: (id: string) => null | HTMLElement;
|
|
72
|
-
/**
|
|
73
|
-
* Get the nearest editable child and index at `index` in a `parent`, preferring `direction`.
|
|
74
|
-
*/
|
|
75
|
-
export declare const getEditableChildAndIndex: (parent: DOMElement, index: number, direction: "forward" | "backward") => [DOMNode, number];
|
|
76
|
-
/**
|
|
77
|
-
* Get the nearest editable child at `index` in a `parent`, preferring
|
|
78
|
-
* `direction`.
|
|
79
|
-
*/
|
|
80
|
-
export declare const getEditableChild: (parent: DOMElement, index: number, direction: "forward" | "backward") => DOMNode;
|
|
81
|
-
/**
|
|
82
|
-
* Get a plaintext representation of the content of a node, accounting for block
|
|
83
|
-
* elements which get a newline appended.
|
|
84
|
-
*
|
|
85
|
-
* The domNode must be attached to the DOM.
|
|
86
|
-
*/
|
|
87
|
-
export declare const getPlainText: (domNode: DOMNode) => string;
|
|
88
|
-
/**
|
|
89
|
-
* 在下级节点中找到第一个 void elem
|
|
90
|
-
* @param elem elem
|
|
91
|
-
*/
|
|
92
|
-
export declare function getFirstVoidChild(elem: DOMElement): DOMElement | null;
|
|
93
|
-
/**
|
|
94
|
-
* 遍历一个 elem 内所有的 text node ,执行函数
|
|
95
|
-
* @param elem elem
|
|
96
|
-
* @param handler handler
|
|
97
|
-
*/
|
|
98
|
-
export declare function walkTextNodes(elem: DOMElement, handler: (textNode: DOMNode, parent: DOMElement) => void): void;
|
|
99
|
-
/**
|
|
100
|
-
* 获取 tagName lower-case
|
|
101
|
-
* @param $elem $elem
|
|
102
|
-
*/
|
|
103
|
-
export declare function getTagName($elem: Dom7Array): string;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description 快捷键
|
|
3
|
-
* @author wangfupeng
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Hotkeys.
|
|
7
|
-
*/
|
|
8
|
-
declare const _default: {
|
|
9
|
-
isBold: (event: KeyboardEvent) => boolean;
|
|
10
|
-
isCompose: (event: KeyboardEvent) => boolean;
|
|
11
|
-
isMoveBackward: (event: KeyboardEvent) => boolean;
|
|
12
|
-
isMoveForward: (event: KeyboardEvent) => boolean;
|
|
13
|
-
isDeleteBackward: (event: KeyboardEvent) => boolean;
|
|
14
|
-
isDeleteForward: (event: KeyboardEvent) => boolean;
|
|
15
|
-
isDeleteLineBackward: (event: KeyboardEvent) => boolean;
|
|
16
|
-
isDeleteLineForward: (event: KeyboardEvent) => boolean;
|
|
17
|
-
isDeleteWordBackward: (event: KeyboardEvent) => boolean;
|
|
18
|
-
isDeleteWordForward: (event: KeyboardEvent) => boolean;
|
|
19
|
-
isExtendBackward: (event: KeyboardEvent) => boolean;
|
|
20
|
-
isExtendForward: (event: KeyboardEvent) => boolean;
|
|
21
|
-
isExtendLineBackward: (event: KeyboardEvent) => boolean;
|
|
22
|
-
isExtendLineForward: (event: KeyboardEvent) => boolean;
|
|
23
|
-
isItalic: (event: KeyboardEvent) => boolean;
|
|
24
|
-
isMoveLineBackward: (event: KeyboardEvent) => boolean;
|
|
25
|
-
isMoveLineForward: (event: KeyboardEvent) => boolean;
|
|
26
|
-
isMoveWordBackward: (event: KeyboardEvent) => boolean;
|
|
27
|
-
isMoveWordForward: (event: KeyboardEvent) => boolean;
|
|
28
|
-
isRedo: (event: KeyboardEvent) => boolean;
|
|
29
|
-
isSplitBlock: (event: KeyboardEvent) => boolean;
|
|
30
|
-
isTransposeCharacter: (event: KeyboardEvent) => boolean;
|
|
31
|
-
isUndo: (event: KeyboardEvent) => boolean;
|
|
32
|
-
isTab: (event: KeyboardEvent) => boolean;
|
|
33
|
-
isSelectAll: (event: KeyboardEvent) => boolean;
|
|
34
|
-
};
|
|
35
|
-
export default _default;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* An auto-incrementing identifier for keys.
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* A class that keeps track of a key string. We use a full class here because we
|
|
6
|
-
* want to be able to use them as keys in `WeakMap` objects.
|
|
7
|
-
*/
|
|
8
|
-
export declare class Key {
|
|
9
|
-
id: string;
|
|
10
|
-
constructor();
|
|
11
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description Utilities for single-line deletion
|
|
3
|
-
*/
|
|
4
|
-
import { Range } from 'slate';
|
|
5
|
-
import { IDomEditor } from '../editor/interface';
|
|
6
|
-
/**
|
|
7
|
-
* A helper utility that returns the end portion of a `Range`
|
|
8
|
-
* which is located on a single line.
|
|
9
|
-
*
|
|
10
|
-
* @param {Editor} editor The editor object to compare against
|
|
11
|
-
* @param {Range} parentRange The parent range to compare against
|
|
12
|
-
* @returns {Range} A valid portion of the parentRange which is one a single line
|
|
13
|
-
*/
|
|
14
|
-
export declare const findCurrentLineRange: (editor: IDomEditor, parentRange: Range) => Range;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description 通过 UA 判断浏览器
|
|
3
|
-
* @author wangfupeng
|
|
4
|
-
*/
|
|
5
|
-
export declare const IS_IOS: boolean;
|
|
6
|
-
export declare const IS_APPLE: boolean;
|
|
7
|
-
export declare const IS_FIREFOX: boolean;
|
|
8
|
-
export declare const IS_FIREFOX_LEGACY: boolean;
|
|
9
|
-
export declare const IS_SAFARI: boolean;
|
|
10
|
-
export declare const IS_EDGE_LEGACY: boolean;
|
|
11
|
-
export declare const IS_CHROME_LEGACY: boolean;
|
|
12
|
-
export declare const IS_CHROME: boolean;
|
|
13
|
-
export declare const IS_QQBROWSER: boolean;
|
|
14
|
-
export declare const HAS_BEFORE_INPUT_SUPPORT: boolean;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description 工具函数
|
|
3
|
-
* @author wangfupeng
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* 获取随机数字符串
|
|
7
|
-
* @param prefix 前缀
|
|
8
|
-
* @returns 随机数字符串
|
|
9
|
-
*/
|
|
10
|
-
export declare function genRandomStr(prefix?: string): string;
|
|
11
|
-
export declare function promiseResolveThen(fn: Function): void;
|
|
12
|
-
/**
|
|
13
|
-
* 追加 url query 参数
|
|
14
|
-
* @param url url
|
|
15
|
-
* @param data data
|
|
16
|
-
*/
|
|
17
|
-
export declare function addQueryToUrl(url: string, data: object): string;
|
|
18
|
-
/**
|
|
19
|
-
* 替换 html 特殊字符,如 > 替换为 >
|
|
20
|
-
* @param str html str
|
|
21
|
-
*/
|
|
22
|
-
export declare function replaceHtmlSpecialSymbols(str: string): string;
|
|
23
|
-
/**
|
|
24
|
-
*【反转】替换 html 特殊字符,如 > 替换为 >
|
|
25
|
-
* @param str html str
|
|
26
|
-
*/
|
|
27
|
-
export declare function deReplaceHtmlSpecialSymbols(str: string): string;
|
|
28
|
-
export declare const toString: (val: unknown) => string;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description vdom 相关方法
|
|
3
|
-
* @author wangfupeng
|
|
4
|
-
*/
|
|
5
|
-
import { Dataset, Props, VNode, VNodeStyle } from 'snabbdom';
|
|
6
|
-
export type PatchFn = (oldVnode: VNode | Element, vnode: VNode) => VNode;
|
|
7
|
-
/**
|
|
8
|
-
* 创建 snabbdom patch
|
|
9
|
-
* @returns snabbdom patch 函数
|
|
10
|
-
*/
|
|
11
|
-
export declare function genPatchFn(): PatchFn;
|
|
12
|
-
/**
|
|
13
|
-
* 给 vnode 添加 prop
|
|
14
|
-
* @param vnode vnode
|
|
15
|
-
* @param newProp { key: val }
|
|
16
|
-
*/
|
|
17
|
-
export declare function addVnodeProp(vnode: VNode, newProp: Props): void;
|
|
18
|
-
/**
|
|
19
|
-
* 给 vnode 添加 dataset
|
|
20
|
-
* @param vnode vnode
|
|
21
|
-
* @param newDataset { key: val }
|
|
22
|
-
*/
|
|
23
|
-
export declare function addVnodeDataset(vnode: VNode, newDataset: Dataset): void;
|
|
24
|
-
/**
|
|
25
|
-
* 给 vnode 添加样式
|
|
26
|
-
* @param vnode vnode
|
|
27
|
-
* @param newStyle { key: val }
|
|
28
|
-
*/
|
|
29
|
-
export declare function addVnodeStyle(vnode: VNode, newStyle: VNodeStyle): void;
|
|
30
|
-
/**
|
|
31
|
-
* 整理 vnode.data ,将暴露出来的零散属性(如 id className data-xxx)放在 data.props 或 data.dataset
|
|
32
|
-
* @param vnode vnode
|
|
33
|
-
*/
|
|
34
|
-
export declare function normalizeVnodeData(vnode: VNode): void;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description 对象关联关系(部分参考 slate-react weak-maps.ts)
|
|
3
|
-
* @author wangfupeng
|
|
4
|
-
*/
|
|
5
|
-
import { Emitter } from 'event-emitter';
|
|
6
|
-
import { Ancestor, Editor, Node, Path, Range } from 'slate';
|
|
7
|
-
import { VNode } from 'snabbdom';
|
|
8
|
-
import { IEditorConfig } from '../config/interface';
|
|
9
|
-
import { IDomEditor } from '../editor/interface';
|
|
10
|
-
import HoverBar from '../menus/bar/HoverBar';
|
|
11
|
-
import Toolbar from '../menus/bar/Toolbar';
|
|
12
|
-
import { IBarItem } from '../menus/bar-item/index';
|
|
13
|
-
import PanelAndModal from '../menus/panel-and-modal/BaseClass';
|
|
14
|
-
import TextArea from '../text-area/TextArea';
|
|
15
|
-
import { PatchFn } from '../utils/vdom';
|
|
16
|
-
import { Key } from './key';
|
|
17
|
-
export declare const EDITOR_TO_TEXTAREA: WeakMap<IDomEditor, TextArea>;
|
|
18
|
-
export declare const TEXTAREA_TO_EDITOR: WeakMap<TextArea, IDomEditor>;
|
|
19
|
-
export declare const TOOLBAR_TO_EDITOR: WeakMap<Toolbar, IDomEditor>;
|
|
20
|
-
export declare const EDITOR_TO_TOOLBAR: WeakMap<IDomEditor, Toolbar>;
|
|
21
|
-
export declare const HOVER_BAR_TO_EDITOR: WeakMap<HoverBar, IDomEditor>;
|
|
22
|
-
export declare const EDITOR_TO_HOVER_BAR: WeakMap<IDomEditor, HoverBar>;
|
|
23
|
-
export declare const BAR_ITEM_TO_EDITOR: WeakMap<IBarItem, IDomEditor>;
|
|
24
|
-
export declare const EDITOR_TO_PANEL_AND_MODAL: WeakMap<IDomEditor, Set<PanelAndModal>>;
|
|
25
|
-
export declare const PANEL_OR_MODAL_TO_EDITOR: WeakMap<PanelAndModal, IDomEditor>;
|
|
26
|
-
export declare const EDITOR_TO_CONFIG: WeakMap<IDomEditor, IEditorConfig>;
|
|
27
|
-
export declare const IS_FIRST_PATCH: WeakMap<TextArea, boolean>;
|
|
28
|
-
export declare const TEXTAREA_TO_PATCH_FN: WeakMap<TextArea, PatchFn>;
|
|
29
|
-
export declare const TEXTAREA_TO_VNODE: WeakMap<TextArea, VNode>;
|
|
30
|
-
export declare const NODE_TO_VNODE: WeakMap<Node, [number, VNode]>;
|
|
31
|
-
export declare const NODE_TO_HTML: WeakMap<Node, String>;
|
|
32
|
-
/**
|
|
33
|
-
* Two weak maps that allow us rebuild a path given a node. They are populated
|
|
34
|
-
* at render time such that after a render occurs we can always backtrack.
|
|
35
|
-
*/
|
|
36
|
-
export declare const NODE_TO_INDEX: WeakMap<Node, number>;
|
|
37
|
-
export declare const NODE_TO_PARENT: WeakMap<Node, Ancestor>;
|
|
38
|
-
/**
|
|
39
|
-
* Weak maps that allow us to go between Slate nodes and DOM nodes. These
|
|
40
|
-
* are used to resolve DOM event-related logic into Slate actions.
|
|
41
|
-
*/
|
|
42
|
-
export declare const EDITOR_TO_ELEMENT: WeakMap<Editor, HTMLElement>;
|
|
43
|
-
export declare const EDITOR_TO_PLACEHOLDER: WeakMap<Editor, string>;
|
|
44
|
-
export declare const ELEMENT_TO_NODE: WeakMap<HTMLElement, Node>;
|
|
45
|
-
export declare const KEY_TO_ELEMENT: WeakMap<Key, HTMLElement>;
|
|
46
|
-
export declare const NODE_TO_ELEMENT: WeakMap<Node, HTMLElement>;
|
|
47
|
-
export declare const NODE_TO_KEY: WeakMap<Node, Key>;
|
|
48
|
-
export declare const EDITOR_TO_WINDOW: WeakMap<Editor, Window>;
|
|
49
|
-
/**
|
|
50
|
-
* Weak maps for storing editor-related state.
|
|
51
|
-
*/
|
|
52
|
-
export declare const IS_FOCUSED: WeakMap<Editor, boolean>;
|
|
53
|
-
export declare const IS_DRAGGING: WeakMap<Editor, boolean>;
|
|
54
|
-
export declare const IS_CLICKING: WeakMap<Editor, boolean>;
|
|
55
|
-
export declare const CHANGING_NODE_PATH: WeakMap<Editor, Path>;
|
|
56
|
-
export declare const EDITOR_TO_SELECTION: WeakMap<Editor, Range>;
|
|
57
|
-
export declare const EDITOR_TO_EMITTER: WeakMap<Editor, Emitter>;
|
|
58
|
-
export declare const EDITOR_TO_CAN_PASTE: WeakMap<Editor, boolean>;
|
|
59
|
-
export declare const EDITOR_TO_PENDING_COMPOSITION_END: WeakMap<Editor, boolean>;
|
|
60
|
-
export declare const EDITOR_TO_PENDING_SELECTION: WeakMap<Editor, Range | null>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description icon svg
|
|
3
|
-
* @author wangfupeng
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* 【注意】svg 字符串的长度 ,否则会导致代码体积过大
|
|
7
|
-
* 尽量选择 https://www.iconfont.cn/collections/detail?spm=a313x.7781069.0.da5a778a4&cid=20293
|
|
8
|
-
* 找不到再从 iconfont.com 搜索
|
|
9
|
-
*/
|
|
10
|
-
export declare const VIDEO_SVG = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z\"></path></svg>";
|
|
11
|
-
export declare const UPLOAD_VIDEO_SVG = "<svg viewBox=\"0 0 1056 1024\"><path d=\"M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z\" p-id=\"6802\"></path><path d=\"M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z\"></path></svg>";
|
|
12
|
-
export declare const PENCIL_SVG = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z\"></path></svg>";
|
|
13
|
-
export declare const VIDEO_ALIGN_LEFT_SVG = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z\"></path></svg>";
|
|
14
|
-
export declare const VIDEO_ALIGN_CENTER_SVG = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z\"></path></svg>";
|
|
15
|
-
export declare const VIDEO_ALIGN_RIGHT_SVG = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z\"></path></svg>";
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description i18n en
|
|
3
|
-
* @author wangfupeng
|
|
4
|
-
*/
|
|
5
|
-
declare const _default: {
|
|
6
|
-
videoModule: {
|
|
7
|
-
delete: string;
|
|
8
|
-
uploadVideo: string;
|
|
9
|
-
insertVideo: string;
|
|
10
|
-
videoSrc: string;
|
|
11
|
-
videoSrcPlaceHolder: string;
|
|
12
|
-
videoPoster: string;
|
|
13
|
-
videoPosterPlaceHolder: string;
|
|
14
|
-
ok: string;
|
|
15
|
-
editSize: string;
|
|
16
|
-
edit: string;
|
|
17
|
-
width: string;
|
|
18
|
-
height: string;
|
|
19
|
-
alignLeft: string;
|
|
20
|
-
alignCenter: string;
|
|
21
|
-
alignRight: string;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export default _default;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description i18n zh-CN
|
|
3
|
-
* @author wangfupeng
|
|
4
|
-
*/
|
|
5
|
-
declare const _default: {
|
|
6
|
-
videoModule: {
|
|
7
|
-
delete: string;
|
|
8
|
-
uploadVideo: string;
|
|
9
|
-
insertVideo: string;
|
|
10
|
-
videoSrc: string;
|
|
11
|
-
videoSrcPlaceHolder: string;
|
|
12
|
-
videoPoster: string;
|
|
13
|
-
videoPosterPlaceHolder: string;
|
|
14
|
-
ok: string;
|
|
15
|
-
editSize: string;
|
|
16
|
-
edit: string;
|
|
17
|
-
width: string;
|
|
18
|
-
height: string;
|
|
19
|
-
alignLeft: string;
|
|
20
|
-
alignCenter: string;
|
|
21
|
-
alignRight: string;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export default _default;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description video alignment helpers
|
|
3
|
-
*/
|
|
4
|
-
import { Element } from 'slate';
|
|
5
|
-
import { VideoAlign } from './custom-types';
|
|
6
|
-
export declare const DEFAULT_VIDEO_ALIGN: VideoAlign;
|
|
7
|
-
export declare function normalizeVideoAlign(value: unknown): VideoAlign;
|
|
8
|
-
export declare function getVideoAlign(elemNode: Element): VideoAlign;
|
|
9
|
-
export declare function getVideoAlignClass(align: VideoAlign): string;
|
|
10
|
-
export declare function getVideoJustifyContent(align: VideoAlign): string;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description video element
|
|
3
|
-
* @author wangfupeng
|
|
4
|
-
*/
|
|
5
|
-
type EmptyText = {
|
|
6
|
-
text: '';
|
|
7
|
-
};
|
|
8
|
-
export type videoStyle = {
|
|
9
|
-
width?: string;
|
|
10
|
-
height?: string;
|
|
11
|
-
};
|
|
12
|
-
export type VideoAlign = 'left' | 'center' | 'right';
|
|
13
|
-
export type VideoElement = {
|
|
14
|
-
type: 'video';
|
|
15
|
-
key?: string;
|
|
16
|
-
src: string;
|
|
17
|
-
poster?: string;
|
|
18
|
-
align?: VideoAlign;
|
|
19
|
-
width?: string;
|
|
20
|
-
height?: string;
|
|
21
|
-
style?: videoStyle;
|
|
22
|
-
children: EmptyText[];
|
|
23
|
-
};
|
|
24
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description to html
|
|
3
|
-
* @author wangfupeng
|
|
4
|
-
*/
|
|
5
|
-
import { IDomEditor } from '@wangeditor-next/core';
|
|
6
|
-
import { Element } from 'slate';
|
|
7
|
-
declare function videoToHtml(elemNode: Element, _childrenHtml?: string, editor?: IDomEditor): string;
|
|
8
|
-
export declare const videoToHtmlConf: {
|
|
9
|
-
type: string;
|
|
10
|
-
elemToHtml: typeof videoToHtml;
|
|
11
|
-
};
|
|
12
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description insert video
|
|
3
|
-
* @author wangfupeng
|
|
4
|
-
*/
|
|
5
|
-
import { IDomEditor } from '@wangeditor-next/core';
|
|
6
|
-
/**
|
|
7
|
-
* 插入视频
|
|
8
|
-
* @param editor editor
|
|
9
|
-
* @param src video src
|
|
10
|
-
* @param poster video poster
|
|
11
|
-
*/
|
|
12
|
-
export default function (editor: IDomEditor, src: string, poster?: string, width?: string, height?: string): Promise<void>;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description 修改视频尺寸
|
|
3
|
-
* @author wangfupeng
|
|
4
|
-
*/
|
|
5
|
-
import { IDomEditor, IModalMenu } from '@wangeditor-next/core';
|
|
6
|
-
import { Node as SlateNode } from 'slate';
|
|
7
|
-
import { DOMElement } from '../../utils/dom';
|
|
8
|
-
declare class EditorVideoSizeMenu implements IModalMenu {
|
|
9
|
-
readonly title: string;
|
|
10
|
-
readonly tag = "button";
|
|
11
|
-
readonly showModal = true;
|
|
12
|
-
readonly modalWidth = 320;
|
|
13
|
-
private $content;
|
|
14
|
-
private readonly widthInputId;
|
|
15
|
-
private readonly heightInputId;
|
|
16
|
-
private readonly buttonId;
|
|
17
|
-
private getSelectedVideoNode;
|
|
18
|
-
getValue(_editor: IDomEditor): string | boolean;
|
|
19
|
-
isActive(_editor: IDomEditor): boolean;
|
|
20
|
-
exec(_editor: IDomEditor, _value: string | boolean): void;
|
|
21
|
-
isDisabled(editor: IDomEditor): boolean;
|
|
22
|
-
getModalPositionNode(editor: IDomEditor): SlateNode | null;
|
|
23
|
-
getModalContentElem(editor: IDomEditor): DOMElement;
|
|
24
|
-
}
|
|
25
|
-
export default EditorVideoSizeMenu;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description editor video menu
|
|
3
|
-
* @author
|
|
4
|
-
*/
|
|
5
|
-
import { IDomEditor, IModalMenu } from '@wangeditor-next/core';
|
|
6
|
-
import { Node as SlateNode } from 'slate';
|
|
7
|
-
import { DOMElement } from '../../utils/dom';
|
|
8
|
-
declare class Editvideo implements IModalMenu {
|
|
9
|
-
readonly title: string;
|
|
10
|
-
readonly iconSvg = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z\"></path></svg>";
|
|
11
|
-
readonly tag = "button";
|
|
12
|
-
readonly showModal = true;
|
|
13
|
-
readonly modalWidth = 300;
|
|
14
|
-
private $content;
|
|
15
|
-
private readonly srcInputId;
|
|
16
|
-
private readonly posterInputId;
|
|
17
|
-
private readonly buttonId;
|
|
18
|
-
private getSelectedVideoNode;
|
|
19
|
-
getValue(_editor: IDomEditor): string | boolean;
|
|
20
|
-
isActive(_editor: IDomEditor): boolean;
|
|
21
|
-
exec(_editor: IDomEditor, _value: string | boolean): void;
|
|
22
|
-
isDisabled(editor: IDomEditor): boolean;
|
|
23
|
-
getModalPositionNode(editor: IDomEditor): SlateNode | null;
|
|
24
|
-
getModalContentElem(editor: IDomEditor): DOMElement;
|
|
25
|
-
}
|
|
26
|
-
export default Editvideo;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description insert video menu
|
|
3
|
-
* @author wangfupeng
|
|
4
|
-
*/
|
|
5
|
-
import { IDomEditor, IModalMenu } from '@wangeditor-next/core';
|
|
6
|
-
import { Node } from 'slate';
|
|
7
|
-
import { DOMElement } from '../../utils/dom';
|
|
8
|
-
declare class InsertVideoMenu implements IModalMenu {
|
|
9
|
-
readonly title: string;
|
|
10
|
-
readonly iconSvg = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z\"></path></svg>";
|
|
11
|
-
readonly tag = "button";
|
|
12
|
-
readonly showModal = true;
|
|
13
|
-
readonly modalWidth = 320;
|
|
14
|
-
private $content;
|
|
15
|
-
private readonly srcInputId;
|
|
16
|
-
private readonly posterInputId;
|
|
17
|
-
private readonly buttonId;
|
|
18
|
-
getValue(_editor: IDomEditor): string | boolean;
|
|
19
|
-
isActive(_editor: IDomEditor): boolean;
|
|
20
|
-
exec(_editor: IDomEditor, _value: string | boolean): void;
|
|
21
|
-
isDisabled(editor: IDomEditor): boolean;
|
|
22
|
-
getModalPositionNode(_editor: IDomEditor): Node | null;
|
|
23
|
-
getModalContentElem(editor: IDomEditor): DOMElement;
|
|
24
|
-
}
|
|
25
|
-
export default InsertVideoMenu;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description upload video menu
|
|
3
|
-
* @author wangfupeng
|
|
4
|
-
*/
|
|
5
|
-
import { IButtonMenu, IDomEditor } from '@wangeditor-next/core';
|
|
6
|
-
declare class UploadVideoMenu implements IButtonMenu {
|
|
7
|
-
readonly title: string;
|
|
8
|
-
readonly iconSvg = "<svg viewBox=\"0 0 1056 1024\"><path d=\"M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z\" p-id=\"6802\"></path><path d=\"M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z\"></path></svg>";
|
|
9
|
-
readonly tag = "button";
|
|
10
|
-
getValue(_editor: IDomEditor): string | boolean;
|
|
11
|
-
isActive(_editor: IDomEditor): boolean;
|
|
12
|
-
exec(editor: IDomEditor, _value: string | boolean): void;
|
|
13
|
-
isDisabled(editor: IDomEditor): boolean;
|
|
14
|
-
private getMenuConfig;
|
|
15
|
-
}
|
|
16
|
-
export default UploadVideoMenu;
|