md-editor-v3 1.4.4 → 1.6.2
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/README.md +118 -103
- package/lib/MdEditor/Editor.d.ts +43 -23
- package/lib/md-editor-v3.es.js +4891 -1
- package/lib/md-editor-v3.umd.js +62 -1
- package/lib/style.css +1 -1
- package/package.json +4 -3
- package/lib/MdEditor/capi.d.ts +0 -3
- package/lib/MdEditor/components/Divider/index.d.ts +0 -2
- package/lib/MdEditor/components/Dropdown/index.d.ts +0 -44
- package/lib/MdEditor/components/Modal/index.d.ts +0 -49
- package/lib/MdEditor/config.d.ts +0 -20
- package/lib/MdEditor/index.d.ts +0 -2
- package/lib/MdEditor/layouts/Content/composition.d.ts +0 -20
- package/lib/MdEditor/layouts/Content/index.d.ts +0 -58
- package/lib/MdEditor/layouts/Modals/Clip.d.ts +0 -35
- package/lib/MdEditor/layouts/Modals/Link.d.ts +0 -49
- package/lib/MdEditor/layouts/Modals/index.d.ts +0 -42
- package/lib/MdEditor/layouts/Toolbar/composition.d.ts +0 -4
- package/lib/MdEditor/layouts/Toolbar/index.d.ts +0 -50
- package/lib/MdEditor/utils/content-help.d.ts +0 -24
- package/lib/MdEditor/utils/dom.d.ts +0 -6
- package/lib/MdEditor/utils/event-bus.d.ts +0 -17
- package/lib/MdEditor/utils/index.d.ts +0 -62
- package/lib/MdEditor/utils/vue-tsx.d.ts +0 -14
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* created by zbf at 2019-12-13 10:24:20
|
|
3
|
-
*
|
|
4
|
-
* 设置foucs位置/选中元素
|
|
5
|
-
*
|
|
6
|
-
* @param tarDom 目标元素
|
|
7
|
-
* @param startPos 选中开始位置
|
|
8
|
-
* @param endPos 结束位置
|
|
9
|
-
*/
|
|
10
|
-
export declare const setPosition: (tarDom: HTMLInputElement | HTMLTextAreaElement, startPos?: number, endPos?: number) => void;
|
|
11
|
-
/**
|
|
12
|
-
* created by zbf at 2019-12-13 09:56:23
|
|
13
|
-
*
|
|
14
|
-
* 从focus位置插入元素
|
|
15
|
-
*
|
|
16
|
-
* @param dom 需要插入的input或textarea元素
|
|
17
|
-
* @param tarValue 插入的目标值
|
|
18
|
-
* @param params 光标定位偏移
|
|
19
|
-
* @returns 插入后的值
|
|
20
|
-
*/
|
|
21
|
-
export declare const insert: (dom: HTMLInputElement | HTMLTextAreaElement, tarValue: string, params: {
|
|
22
|
-
deviationStart?: number;
|
|
23
|
-
deviationEnd?: number;
|
|
24
|
-
select?: boolean;
|
|
25
|
-
direct?: boolean;
|
|
26
|
-
prefixVal?: string;
|
|
27
|
-
subfixVal?: string;
|
|
28
|
-
}) => string;
|
|
29
|
-
/**
|
|
30
|
-
* js模拟a链接点击
|
|
31
|
-
*
|
|
32
|
-
* @param {string} url 目标地址
|
|
33
|
-
* @param {*} option 是否新窗口、是否要求不跟踪
|
|
34
|
-
*/
|
|
35
|
-
export declare const goto: (url: string, option?: {
|
|
36
|
-
newWindow: boolean;
|
|
37
|
-
nofollow: boolean;
|
|
38
|
-
}) => void;
|
|
39
|
-
/**
|
|
40
|
-
* 两块区域同步滚动
|
|
41
|
-
*
|
|
42
|
-
* @param pEle 宿主区域
|
|
43
|
-
* @param cEle 寄主区域
|
|
44
|
-
* @returns 清除监听的方法
|
|
45
|
-
*/
|
|
46
|
-
export declare const scrollAuto: (pEle: HTMLElement, cEle: HTMLElement) => () => void;
|
|
47
|
-
/**
|
|
48
|
-
* 转换base64为file对象
|
|
49
|
-
* 方法来自网络
|
|
50
|
-
*
|
|
51
|
-
* @param base64 Base64
|
|
52
|
-
* @param fileName 图片名称
|
|
53
|
-
* @returns
|
|
54
|
-
*/
|
|
55
|
-
export declare const base642File: (base64: string, fileName?: string) => File | null;
|
|
56
|
-
/**
|
|
57
|
-
* 对代码块添加行号
|
|
58
|
-
*
|
|
59
|
-
* @param code 代码html内容
|
|
60
|
-
* @returns string
|
|
61
|
-
*/
|
|
62
|
-
export declare const generateCodeRowNumber: (code: string) => string;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ComponentPublicInstance, SetupContext, EmitsOptions } from 'vue';
|
|
2
|
-
/**
|
|
3
|
-
* 获取指定插槽内容
|
|
4
|
-
* 方法设定:vue组件中v-slot优先级高于props
|
|
5
|
-
*
|
|
6
|
-
* @param param0 组件实例instance,SetupContext(setup二入参),props
|
|
7
|
-
* @param name 插槽名或者props名
|
|
8
|
-
* @returns VNode
|
|
9
|
-
*/
|
|
10
|
-
export declare const getSlot: ({ instance, ctx, props }: {
|
|
11
|
-
instance?: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | undefined;
|
|
12
|
-
ctx?: SetupContext<EmitsOptions> | undefined;
|
|
13
|
-
props?: any;
|
|
14
|
-
}, name?: string) => any;
|