md-editor-v3 5.5.1 → 5.6.1-0
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/lib/cjs/MdEditor.cjs +53 -48
- package/lib/cjs/chunks/dom.cjs +4 -5
- package/lib/cjs/chunks/index.cjs +8 -1
- package/lib/es/MdEditor.mjs +56 -51
- package/lib/es/chunks/dom.mjs +4 -5
- package/lib/es/chunks/index.mjs +13 -6
- package/lib/es/chunks/index3.mjs +1 -1
- package/lib/es/chunks/index4.mjs +1 -1
- package/lib/types/MdEditor/Editor.d.ts +3 -0
- package/lib/types/MdEditor/layouts/Content/markdownIt/code/index.d.ts +3 -1
- package/lib/types/MdEditor/layouts/Toolbar/index.d.ts +2 -0
- package/lib/types/MdEditor/layouts/Toolbar/props.d.ts +3 -0
- package/lib/types/MdEditor/props.d.ts +7 -0
- package/lib/types/MdEditor/utils/content-help.d.ts +4 -0
- package/lib/umd/index.js +120 -120
- package/package.json +8 -1
|
@@ -14,6 +14,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14
14
|
}> | undefined;
|
|
15
15
|
readonly noUploadImg: boolean | undefined;
|
|
16
16
|
readonly showToolbarName: boolean | undefined;
|
|
17
|
+
readonly insertLinkDirect: boolean | undefined;
|
|
17
18
|
readonly codeTheme: string | undefined;
|
|
18
19
|
readonly catalogVisible: boolean | undefined;
|
|
19
20
|
}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
@@ -30,6 +31,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
30
31
|
}> | undefined;
|
|
31
32
|
readonly noUploadImg: boolean | undefined;
|
|
32
33
|
readonly showToolbarName: boolean | undefined;
|
|
34
|
+
readonly insertLinkDirect: boolean | undefined;
|
|
33
35
|
readonly codeTheme: string | undefined;
|
|
34
36
|
readonly catalogVisible: boolean | undefined;
|
|
35
37
|
}> & Readonly<{}>, {
|
|
@@ -521,6 +521,13 @@ export declare const editorProps: {
|
|
|
521
521
|
type: PropType<number>;
|
|
522
522
|
default: undefined;
|
|
523
523
|
};
|
|
524
|
+
/**
|
|
525
|
+
* 工具栏直接插入内容到输入框
|
|
526
|
+
*/
|
|
527
|
+
insertLinkDirect: {
|
|
528
|
+
type: PropType<boolean>;
|
|
529
|
+
default: boolean;
|
|
530
|
+
};
|
|
524
531
|
/**
|
|
525
532
|
* markdown content.
|
|
526
533
|
*
|
|
@@ -31,10 +31,14 @@ export declare const directive2flag: (direct: ToolDirective, codeMirrorUt: CodeM
|
|
|
31
31
|
text: string;
|
|
32
32
|
options: {
|
|
33
33
|
select: boolean;
|
|
34
|
+
deviationStart: number;
|
|
35
|
+
deviationEnd: number;
|
|
34
36
|
};
|
|
35
37
|
} | {
|
|
36
38
|
text: string;
|
|
37
39
|
options: {
|
|
38
40
|
select?: undefined;
|
|
41
|
+
deviationStart?: undefined;
|
|
42
|
+
deviationEnd?: undefined;
|
|
39
43
|
};
|
|
40
44
|
}>;
|