md-editor-v3 2.4.1 → 2.5.0-beta.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/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ![](https://img.shields.io/github/package-json/v/imzbf/md-editor-v3) ![](https://img.shields.io/npm/dm/md-editor-v3) ![](https://img.shields.io/bundlephobia/min/md-editor-v3) ![](https://img.shields.io/github/license/imzbf/md-editor-v3) ![](https://img.shields.io/badge/ssr-%3E1.6.0-brightgreen)
4
4
 
5
- English \| [中文](https://github.com/imzbf/md-editor-v3/blob/dev/README-CN.md)
5
+ English \| [中文](https://github.com/imzbf/md-editor-v3/blob/main/README-CN.md)
6
6
 
7
7
  Markdown editor for vue3, developed in `jsx` and `typescript`.
8
8
 
@@ -20,8 +20,8 @@ Markdown editor for vue3, developed in `jsx` and `typescript`.
20
20
  - Beautify your content by `prettier`(only for markdown content, not the code and other text).
21
21
  - Multi-language, build-in Chinese and English(default: Chinese).
22
22
  - Upload picture, paste or clip the picture and upload it.
23
- - Render article directly(no editor, no event listener, only preview content).
24
- - Preview themes, `defalut`, `vuepress`, `github`, `cyanosis`, `mk-cute`, `smart-blue` styles(not identical). It can be customized also(Refer to example page).
23
+ - Render article directly(no editor, no event listener, only preview of content).
24
+ - Theme of preview, `defalut`, `vuepress`, `github`, `cyanosis`, `mk-cute`, `smart-blue` styles(not identical). It can be customized also(Refer to example page).
25
25
  - `mermaid`(>=1.8.0), `katex` mathematical formula(>=1.9.0).
26
26
  - Customize the toolbar as you like.
27
27
 
@@ -37,7 +37,7 @@ Please install `@types/marked` in your typescript project if you want to configu
37
37
  yarn add @types/marked -D
38
38
  ```
39
39
 
40
- Install existing extension of language and preview theme:
40
+ Install existing extension of language and theme of preview:
41
41
 
42
42
  ```shell
43
43
  yarn add @vavt/md-editor-extension
@@ -77,38 +77,40 @@ mark and emoji extensions
77
77
 
78
78
  | name | type | default | description |
79
79
  | --- | --- | --- | --- |
80
- | modelValue | string | '' | Markdown content, use `v-model` in vue template |
81
- | theme | 'light' \| 'dark' | 'light' | Editor theme |
82
- | class | string | '' | |
83
- | historyLength | number | 10 | The max length of history(if it is too big, editor will use more `RAM`) |
84
- | pageFullScreen | boolean | false | Screenfull in web page |
85
- | preview | boolean | true | Preview content in editor |
86
- | htmlPreview | boolean | false | Preview html in editor |
87
- | previewOnly | boolean | false | Only render article content, no toolbar, no edit area |
88
- | language | string | 'zh-CN' | Build-in language('zh-CN','en-US') |
89
- | toolbars | Array<ToolbarNames \| number> | [toolbars] | Show contents of toolbar, all keys<sup>see `toolbars` below</sup> |
90
- | toolbarsExclude | Array<ToolbarNames \| number> | [] | Don't show contents of toolbar, all keys`toolbars` |
91
- | noPrettier | boolean | false | Use prettier to beautify content or not |
92
- | editorId | string | 'md-editor-v3' | Editor id, it is used when there are more than two editors in the same page |
93
- | tabWidth | number | 2 | One tab eq some spaces |
94
- | showCodeRowNumber | boolean | false | Show row number for code block or not |
95
- | previewTheme | 'default' \| 'github' \| 'vuepress' \| 'mk-cute' \| 'smart-blue' \| 'cyanosis' | 'default' | Preview theme, can be customized |
96
- | style | string \| CSSProperties | {} | Editor inline style |
97
- | tableShape | [number, number] | [6, 4] | Preset the size of the table, [columns, rows] |
98
- | noMermaid | boolean | false | Use mermaid or not |
99
- | placeholder | string | '' | |
100
- | noKatex | boolean | false | Use katex or not |
101
- | codeTheme | 'atom' \| 'a11y' \| 'github' \| 'gradient' \| 'kimbie' \| 'paraiso' \| 'qtcreator' \| 'stackoverflow' | 'atom' | Highlight code style, can be customized also |
102
- | markedHeadingId | (text: string, level: number, index: number) => string | (text) => text | H1-H6 `ID` generator |
103
- | sanitize | (html: string) => string | (html) => html | Sanitize the html, prevent XSS |
104
- | footers | Array<'markdownTotal' \| '=' \| 'scrollSwitch' \| number> | ['markdownTotal', '=', 'scrollSwitch'] | Show contents of footer, they are divided by `'='`. Set it to `[]` to hidden footer |
105
- | scrollAuto | boolean | true | Scroll default setting |
106
- | noIconfont | boolean | false | Not append iconfont script, [download](https://at.alicdn.com/t/c/font_2605852_4cjr7o5jo0f.js) and import it by yourself |
107
- | formatCopiedText | (text: string) => string | (text: string) => text | Format copied code |
108
- | noUploadImg | boolean | false | Not show the entrance to upload pictures |
80
+ | modelValue | `string` | '' | Markdown content, use `v-model` in vue template |
81
+ | theme | `'light' \| 'dark'` | 'light' | Editor theme |
82
+ | class | `string` | '' | |
83
+ | historyLength | `number` | 10 | The max length of history(if it is too big, editor will use more `RAM`) |
84
+ | pageFullscreen | `boolean` | false | Screenfull in web page |
85
+ | preview | `boolean` | true | Preview content in editor |
86
+ | htmlPreview | `boolean` | false | Preview html in editor |
87
+ | previewOnly | `boolean` | false | Only render preview of content, no toolbar, no editing area |
88
+ | language | `string` | 'zh-CN' | Build-in language('zh-CN','en-US') |
89
+ | toolbars | `Array<ToolbarNames \| number>` | [toolbars] | Show contents of toolbar, all keys<sup>see `toolbars` below</sup> |
90
+ | toolbarsExclude | `Array<ToolbarNames \| number>` | [] | Don't show contents of toolbar, all keys`toolbars` |
91
+ | noPrettier | `boolean` | false | Use prettier to beautify content or not |
92
+ | editorId | `string` | 'md-editor-v3' | Editor's id, it is used when there are more than two editors in the same page |
93
+ | tabWidth | `number` | 2 | One tab eq some spaces |
94
+ | showCodeRowNumber | `boolean` | false | Show row number for code block or not |
95
+ | previewTheme | `'default' \| 'github' \| 'vuepress' \| 'mk-cute' \| 'smart-blue' \| 'cyanosis'` | 'default' | Theme of preview, can be customized |
96
+ | style | `string \| CSSProperties` | {} | Inline style |
97
+ | tableShape | `[number, number]` | [6, 4] | Preset the size of the table, [columns, rows] |
98
+ | noMermaid | `boolean` | false | Use mermaid or not |
99
+ | placeholder | `string` | '' | |
100
+ | noKatex | `boolean` | false | Use katex or not |
101
+ | codeTheme | `'atom' \| 'a11y' \| 'github' \| 'gradient' \| 'kimbie' \| 'paraiso' \| 'qtcreator' \| 'stackoverflow'` | 'atom' | Highlight code style, can be customized also |
102
+ | markedHeadingId | `(text: string, level: number, index: number) => string` | (text) => text | H1-H6 `ID` generator |
103
+ | sanitize | `(html: string) => string` | (html) => html | Sanitize the html, prevent XSS |
104
+ | footers | `Array<'markdownTotal' \| '=' \| 'scrollSwitch' \| number>` | ['markdownTotal', '=', 'scrollSwitch'] | Show contents of footer, they are divided by `'='`. Set it to `[]` to hidden footer |
105
+ | scrollAuto | `boolean` | true | Scroll default setting |
106
+ | noIconfont | `boolean` | false | Not append iconfont script, [download](https://at.alicdn.com/t/c/font_2605852_gymddm8qwtd.js) and import it by yourself |
107
+ | formatCopiedText | `(text: string) => string` | (text: string) => text | Format copied code |
108
+ | noUploadImg | `boolean` | false | Not show the entrance to upload pictures |
109
+ | codeStyleReverse | `boolean` | false | Code style will be reversed to dark while code block of the theme has a dark background |
110
+ | codeStyleReverseList | `Array<string>` | ['default', 'mk-cute'] | Themes to be reversed |
109
111
 
110
112
  <details>
111
- <summary>[toolbars]</summary>
113
+ <summary>『toolbars』</summary>
112
114
 
113
115
  ```js
114
116
  [
@@ -153,7 +155,7 @@ mark and emoji extensions
153
155
  > After v1.10.0, you can customize the toolbar. To display them, put index of `defToolbars` into `toolbars`(this is not standard), for more usage, please refer to [docs](https://imzbf.github.io/md-editor-v3/docs).
154
156
 
155
157
  <details>
156
- <summary>[StaticTextDefaultValue]</summary>
158
+ <summary>『StaticTextDefaultValue』</summary>
157
159
 
158
160
  Expand language, you need to replace all the content here:
159
161
 
@@ -210,11 +212,12 @@ export interface StaticTextDefaultValue {
210
212
  };
211
213
  // The modal tips of add link or upload picture
212
214
  linkModalTips?: {
213
- title?: string;
214
- descLable?: string;
215
- descLablePlaceHolder?: string;
216
- urlLable?: string;
217
- urlLablePlaceHolder?: string;
215
+ linkTitle?: string;
216
+ imageTitle?: string;
217
+ descLabel?: string;
218
+ descLabelPlaceHolder?: string;
219
+ urlLabel?: string;
220
+ urlLabelPlaceHolder?: string;
218
221
  buttonOK?: string;
219
222
  };
220
223
  // The modal tips of clip the picture, v1.2.0
@@ -256,8 +259,8 @@ export interface StaticTextDefaultValue {
256
259
 
257
260
  | name | type | default | description |
258
261
  | --- | --- | --- | --- |
259
- | defToolbars | Array<DropdownToolbar \| NormalToolbar \| ModalToolbar> | null | Custom toolbar in `DropdownToolbar`, `NormalToolbar` or `ModalToolbar` |
260
- | defFooters | Array<string \| VNode \| JSX.Element> | null | Custom footer |
262
+ | defToolbars | `Array<DropdownToolbar \| NormalToolbar \| ModalToolbar>` | null | Custom toolbar in `DropdownToolbar`, `NormalToolbar` or `ModalToolbar` |
263
+ | defFooters | `Array<string \| VNode \| JSX.Element>` | null | Custom footer |
261
264
 
262
265
  `NormalToolbar` example:
263
266
 
@@ -292,11 +295,11 @@ const handler = () => {
292
295
  | name | param | description |
293
296
  | --- | --- | --- |
294
297
  | onChange | `value: string` | Content changed event(bind to `oninput` of `textarea`) |
295
- | onSave | `value: string` | Save content event, `ctrl+s`and click button will be triggered also |
298
+ | onSave | `value: string, html: Promise<string>` | Save content event, `ctrl+s`and click button will be triggered also |
296
299
  | onUploadImg | `files: Array<File>, callback: (urls: Array<string>) => void` | Upload picture event, when picture is uploading the modal will not close, please provide right urls to the callback function |
297
300
  | onHtmlChanged | `html: string` | Compile markdown successful event, you can use it to get the html code |
298
301
  | onGetCatalog | `list: Array<HeadList>` | Get catalog of article |
299
- | onError | `err: { name: string; message: string }` | Catch run-time error, `Cropper`, `fullScreen` and `prettier` are used when they are not loaded |
302
+ | onError | `err: { name: string; message: string }` | Catch run-time error, `Cropper`, `fullscreen` and `prettier` are used when they are not loaded |
300
303
 
301
304
  ## Config
302
305
 
@@ -375,7 +378,7 @@ Use `MdEditor.config(option: ConfigOption)` to reconfigure `renderer`.
375
378
  ```
376
379
 
377
380
  <details>
378
- <summary>[EditorExtensions]</summary>
381
+ <summary>『EditorExtensions』</summary>
379
382
 
380
383
  ```ts
381
384
  import MdEditor from 'md-editor-v3';
@@ -1,4 +1,3 @@
1
- import { HeadList } from './type';
2
1
  declare const Editor: import("vue").DefineComponent<{
3
2
  modelValue: {
4
3
  type: import("vue").PropType<string>;
@@ -17,15 +16,15 @@ declare const Editor: import("vue").DefineComponent<{
17
16
  default: number;
18
17
  };
19
18
  onChange: {
20
- type: import("vue").PropType<(v: string) => void>;
19
+ type: import("vue").PropType<import("./type").ChangeEvent>;
21
20
  };
22
21
  onSave: {
23
- type: import("vue").PropType<(v: string) => void>;
22
+ type: import("vue").PropType<import("./type").SaveEvent>;
24
23
  };
25
24
  onUploadImg: {
26
- type: import("vue").PropType<(files: File[], callBack: (urls: string[]) => void) => void>;
25
+ type: import("vue").PropType<import("./type").UploadImgEvent>;
27
26
  };
28
- pageFullScreen: {
27
+ pageFullscreen: {
29
28
  type: import("vue").PropType<boolean>;
30
29
  default: boolean;
31
30
  };
@@ -58,10 +57,10 @@ declare const Editor: import("vue").DefineComponent<{
58
57
  default: boolean;
59
58
  };
60
59
  onHtmlChanged: {
61
- type: import("vue").PropType<(h: string) => void>;
60
+ type: import("vue").PropType<import("./type").HtmlChangedEvent>;
62
61
  };
63
62
  onGetCatalog: {
64
- type: import("vue").PropType<(list: HeadList[]) => void>;
63
+ type: import("vue").PropType<import("./type").GetCatalogEvent>;
65
64
  };
66
65
  editorId: {
67
66
  type: import("vue").PropType<string>;
@@ -111,7 +110,7 @@ declare const Editor: import("vue").DefineComponent<{
111
110
  type: import("vue").PropType<string | JSX.Element>;
112
111
  };
113
112
  onError: {
114
- type: import("vue").PropType<(err: import("./type").InnerError) => void>;
113
+ type: import("vue").PropType<import("./type").ErrorEvent>;
115
114
  };
116
115
  codeTheme: {
117
116
  type: import("vue").PropType<string>;
@@ -138,6 +137,14 @@ declare const Editor: import("vue").DefineComponent<{
138
137
  noUploadImg: {
139
138
  type: import("vue").PropType<boolean>;
140
139
  };
140
+ codeStyleReverse: {
141
+ type: import("vue").PropType<boolean>;
142
+ default: boolean;
143
+ };
144
+ codeStyleReverseList: {
145
+ type: import("vue").PropType<string[]>;
146
+ default: string[];
147
+ };
141
148
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "onChange" | "onSave" | "onUploadImg" | "onHtmlChanged" | "onGetCatalog" | "onError" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
142
149
  modelValue: {
143
150
  type: import("vue").PropType<string>;
@@ -156,15 +163,15 @@ declare const Editor: import("vue").DefineComponent<{
156
163
  default: number;
157
164
  };
158
165
  onChange: {
159
- type: import("vue").PropType<(v: string) => void>;
166
+ type: import("vue").PropType<import("./type").ChangeEvent>;
160
167
  };
161
168
  onSave: {
162
- type: import("vue").PropType<(v: string) => void>;
169
+ type: import("vue").PropType<import("./type").SaveEvent>;
163
170
  };
164
171
  onUploadImg: {
165
- type: import("vue").PropType<(files: File[], callBack: (urls: string[]) => void) => void>;
172
+ type: import("vue").PropType<import("./type").UploadImgEvent>;
166
173
  };
167
- pageFullScreen: {
174
+ pageFullscreen: {
168
175
  type: import("vue").PropType<boolean>;
169
176
  default: boolean;
170
177
  };
@@ -197,10 +204,10 @@ declare const Editor: import("vue").DefineComponent<{
197
204
  default: boolean;
198
205
  };
199
206
  onHtmlChanged: {
200
- type: import("vue").PropType<(h: string) => void>;
207
+ type: import("vue").PropType<import("./type").HtmlChangedEvent>;
201
208
  };
202
209
  onGetCatalog: {
203
- type: import("vue").PropType<(list: HeadList[]) => void>;
210
+ type: import("vue").PropType<import("./type").GetCatalogEvent>;
204
211
  };
205
212
  editorId: {
206
213
  type: import("vue").PropType<string>;
@@ -250,7 +257,7 @@ declare const Editor: import("vue").DefineComponent<{
250
257
  type: import("vue").PropType<string | JSX.Element>;
251
258
  };
252
259
  onError: {
253
- type: import("vue").PropType<(err: import("./type").InnerError) => void>;
260
+ type: import("vue").PropType<import("./type").ErrorEvent>;
254
261
  };
255
262
  codeTheme: {
256
263
  type: import("vue").PropType<string>;
@@ -277,14 +284,22 @@ declare const Editor: import("vue").DefineComponent<{
277
284
  noUploadImg: {
278
285
  type: import("vue").PropType<boolean>;
279
286
  };
287
+ codeStyleReverse: {
288
+ type: import("vue").PropType<boolean>;
289
+ default: boolean;
290
+ };
291
+ codeStyleReverseList: {
292
+ type: import("vue").PropType<string[]>;
293
+ default: string[];
294
+ };
280
295
  }>>, {
296
+ pageFullscreen: boolean;
281
297
  preview: boolean;
282
298
  htmlPreview: boolean;
283
299
  modelValue: string;
284
300
  theme: import("./type").Themes;
285
301
  class: string;
286
302
  historyLength: number;
287
- pageFullScreen: boolean;
288
303
  previewOnly: boolean;
289
304
  language: string;
290
305
  toolbars: import("./type").ToolbarNames[];
@@ -305,5 +320,7 @@ declare const Editor: import("vue").DefineComponent<{
305
320
  footers: import("./type").Footers[];
306
321
  scrollAuto: boolean;
307
322
  formatCopiedText: (text: string) => string;
323
+ codeStyleReverse: boolean;
324
+ codeStyleReverseList: string[];
308
325
  }>;
309
326
  export default Editor;
@@ -1,7 +1,7 @@
1
1
  import { CodeCss, Config, ConfigOption, Footers, StaticTextDefault } from './type';
2
2
  export declare const prefix = "md-editor";
3
3
  export declare const iconScriptId = "md-editor-v3";
4
- export declare const iconfontUrl = "https://at.alicdn.com/t/c/font_2605852_4cjr7o5jo0f.js";
4
+ export declare const iconfontUrl = "https://at.alicdn.com/t/c/font_2605852_gymddm8qwtd.js";
5
5
  export declare const cdnBase = "https://cdnjs.cloudflare.com/ajax/libs";
6
6
  export declare const highlightUrl: string;
7
7
  export declare const prettierUrl: {
@@ -9,13 +9,13 @@ declare const _default: {
9
9
  $: import("vue").ComponentInternalInstance;
10
10
  $data: {};
11
11
  $props: Partial<{
12
+ pageFullscreen: boolean;
12
13
  preview: boolean;
13
14
  htmlPreview: boolean;
14
15
  modelValue: string;
15
16
  theme: import("./type").Themes;
16
17
  class: string;
17
18
  historyLength: number;
18
- pageFullScreen: boolean;
19
19
  previewOnly: boolean;
20
20
  language: string;
21
21
  toolbars: import("./type").ToolbarNames[];
@@ -36,6 +36,8 @@ declare const _default: {
36
36
  footers: import("./type").Footers[];
37
37
  scrollAuto: boolean;
38
38
  formatCopiedText: (text: string) => string;
39
+ codeStyleReverse: boolean;
40
+ codeStyleReverseList: string[];
39
41
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
40
42
  modelValue: {
41
43
  type: import("vue").PropType<string>;
@@ -54,15 +56,15 @@ declare const _default: {
54
56
  default: number;
55
57
  };
56
58
  onChange: {
57
- type: import("vue").PropType<(v: string) => void>;
59
+ type: import("vue").PropType<import("./type").ChangeEvent>;
58
60
  };
59
61
  onSave: {
60
- type: import("vue").PropType<(v: string) => void>;
62
+ type: import("vue").PropType<import("./type").SaveEvent>;
61
63
  };
62
64
  onUploadImg: {
63
- type: import("vue").PropType<(files: File[], callBack: (urls: string[]) => void) => void>;
65
+ type: import("vue").PropType<import("./type").UploadImgEvent>;
64
66
  };
65
- pageFullScreen: {
67
+ pageFullscreen: {
66
68
  type: import("vue").PropType<boolean>;
67
69
  default: boolean;
68
70
  };
@@ -95,10 +97,10 @@ declare const _default: {
95
97
  default: boolean;
96
98
  };
97
99
  onHtmlChanged: {
98
- type: import("vue").PropType<(h: string) => void>;
100
+ type: import("vue").PropType<import("./type").HtmlChangedEvent>;
99
101
  };
100
102
  onGetCatalog: {
101
- type: import("vue").PropType<(list: import("./type").HeadList[]) => void>;
103
+ type: import("vue").PropType<import("./type").GetCatalogEvent>;
102
104
  };
103
105
  editorId: {
104
106
  type: import("vue").PropType<string>;
@@ -148,7 +150,7 @@ declare const _default: {
148
150
  type: import("vue").PropType<string | JSX.Element>;
149
151
  };
150
152
  onError: {
151
- type: import("vue").PropType<(err: import("./type").InnerError) => void>;
153
+ type: import("vue").PropType<import("./type").ErrorEvent>;
152
154
  };
153
155
  codeTheme: {
154
156
  type: import("vue").PropType<string>;
@@ -175,7 +177,15 @@ declare const _default: {
175
177
  noUploadImg: {
176
178
  type: import("vue").PropType<boolean>;
177
179
  };
178
- }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "preview" | "htmlPreview" | "modelValue" | "theme" | "class" | "historyLength" | "pageFullScreen" | "previewOnly" | "language" | "toolbars" | "toolbarsExclude" | "noPrettier" | "editorId" | "tabWidth" | "showCodeRowNumber" | "previewTheme" | "style" | "markedHeadingId" | "tableShape" | "noMermaid" | "sanitize" | "placeholder" | "noKatex" | "codeTheme" | "footers" | "scrollAuto" | "formatCopiedText">;
180
+ codeStyleReverse: {
181
+ type: import("vue").PropType<boolean>;
182
+ default: boolean;
183
+ };
184
+ codeStyleReverseList: {
185
+ type: import("vue").PropType<string[]>;
186
+ default: string[];
187
+ };
188
+ }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "pageFullscreen" | "preview" | "htmlPreview" | "modelValue" | "theme" | "class" | "historyLength" | "previewOnly" | "language" | "toolbars" | "toolbarsExclude" | "noPrettier" | "editorId" | "tabWidth" | "showCodeRowNumber" | "previewTheme" | "style" | "markedHeadingId" | "tableShape" | "noMermaid" | "sanitize" | "placeholder" | "noKatex" | "codeTheme" | "footers" | "scrollAuto" | "formatCopiedText" | "codeStyleReverse" | "codeStyleReverseList">;
179
189
  $attrs: {
180
190
  [x: string]: unknown;
181
191
  };
@@ -207,15 +217,15 @@ declare const _default: {
207
217
  default: number;
208
218
  };
209
219
  onChange: {
210
- type: import("vue").PropType<(v: string) => void>;
220
+ type: import("vue").PropType<import("./type").ChangeEvent>;
211
221
  };
212
222
  onSave: {
213
- type: import("vue").PropType<(v: string) => void>;
223
+ type: import("vue").PropType<import("./type").SaveEvent>;
214
224
  };
215
225
  onUploadImg: {
216
- type: import("vue").PropType<(files: File[], callBack: (urls: string[]) => void) => void>;
226
+ type: import("vue").PropType<import("./type").UploadImgEvent>;
217
227
  };
218
- pageFullScreen: {
228
+ pageFullscreen: {
219
229
  type: import("vue").PropType<boolean>;
220
230
  default: boolean;
221
231
  };
@@ -248,10 +258,10 @@ declare const _default: {
248
258
  default: boolean;
249
259
  };
250
260
  onHtmlChanged: {
251
- type: import("vue").PropType<(h: string) => void>;
261
+ type: import("vue").PropType<import("./type").HtmlChangedEvent>;
252
262
  };
253
263
  onGetCatalog: {
254
- type: import("vue").PropType<(list: import("./type").HeadList[]) => void>;
264
+ type: import("vue").PropType<import("./type").GetCatalogEvent>;
255
265
  };
256
266
  editorId: {
257
267
  type: import("vue").PropType<string>;
@@ -301,7 +311,7 @@ declare const _default: {
301
311
  type: import("vue").PropType<string | JSX.Element>;
302
312
  };
303
313
  onError: {
304
- type: import("vue").PropType<(err: import("./type").InnerError) => void>;
314
+ type: import("vue").PropType<import("./type").ErrorEvent>;
305
315
  };
306
316
  codeTheme: {
307
317
  type: import("vue").PropType<string>;
@@ -328,14 +338,22 @@ declare const _default: {
328
338
  noUploadImg: {
329
339
  type: import("vue").PropType<boolean>;
330
340
  };
341
+ codeStyleReverse: {
342
+ type: import("vue").PropType<boolean>;
343
+ default: boolean;
344
+ };
345
+ codeStyleReverseList: {
346
+ type: import("vue").PropType<string[]>;
347
+ default: string[];
348
+ };
331
349
  }>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, {
350
+ pageFullscreen: boolean;
332
351
  preview: boolean;
333
352
  htmlPreview: boolean;
334
353
  modelValue: string;
335
354
  theme: import("./type").Themes;
336
355
  class: string;
337
356
  historyLength: number;
338
- pageFullScreen: boolean;
339
357
  previewOnly: boolean;
340
358
  language: string;
341
359
  toolbars: import("./type").ToolbarNames[];
@@ -356,6 +374,8 @@ declare const _default: {
356
374
  footers: import("./type").Footers[];
357
375
  scrollAuto: boolean;
358
376
  formatCopiedText: (text: string) => string;
377
+ codeStyleReverse: boolean;
378
+ codeStyleReverseList: string[];
359
379
  }> & {
360
380
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
361
381
  created?: ((() => void) | (() => void)[]) | undefined;
@@ -394,15 +414,15 @@ declare const _default: {
394
414
  default: number;
395
415
  };
396
416
  onChange: {
397
- type: import("vue").PropType<(v: string) => void>;
417
+ type: import("vue").PropType<import("./type").ChangeEvent>;
398
418
  };
399
419
  onSave: {
400
- type: import("vue").PropType<(v: string) => void>;
420
+ type: import("vue").PropType<import("./type").SaveEvent>;
401
421
  };
402
422
  onUploadImg: {
403
- type: import("vue").PropType<(files: File[], callBack: (urls: string[]) => void) => void>;
423
+ type: import("vue").PropType<import("./type").UploadImgEvent>;
404
424
  };
405
- pageFullScreen: {
425
+ pageFullscreen: {
406
426
  type: import("vue").PropType<boolean>;
407
427
  default: boolean;
408
428
  };
@@ -435,10 +455,10 @@ declare const _default: {
435
455
  default: boolean;
436
456
  };
437
457
  onHtmlChanged: {
438
- type: import("vue").PropType<(h: string) => void>;
458
+ type: import("vue").PropType<import("./type").HtmlChangedEvent>;
439
459
  };
440
460
  onGetCatalog: {
441
- type: import("vue").PropType<(list: import("./type").HeadList[]) => void>;
461
+ type: import("vue").PropType<import("./type").GetCatalogEvent>;
442
462
  };
443
463
  editorId: {
444
464
  type: import("vue").PropType<string>;
@@ -488,7 +508,7 @@ declare const _default: {
488
508
  type: import("vue").PropType<string | JSX.Element>;
489
509
  };
490
510
  onError: {
491
- type: import("vue").PropType<(err: import("./type").InnerError) => void>;
511
+ type: import("vue").PropType<import("./type").ErrorEvent>;
492
512
  };
493
513
  codeTheme: {
494
514
  type: import("vue").PropType<string>;
@@ -515,6 +535,14 @@ declare const _default: {
515
535
  noUploadImg: {
516
536
  type: import("vue").PropType<boolean>;
517
537
  };
538
+ codeStyleReverse: {
539
+ type: import("vue").PropType<boolean>;
540
+ default: boolean;
541
+ };
542
+ codeStyleReverseList: {
543
+ type: import("vue").PropType<string[]>;
544
+ default: string[];
545
+ };
518
546
  }>> & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & {} & import("vue").ComponentCustomProperties;
519
547
  __isFragment?: undefined;
520
548
  __isTeleport?: undefined;
@@ -537,15 +565,15 @@ declare const _default: {
537
565
  default: number;
538
566
  };
539
567
  onChange: {
540
- type: import("vue").PropType<(v: string) => void>;
568
+ type: import("vue").PropType<import("./type").ChangeEvent>;
541
569
  };
542
570
  onSave: {
543
- type: import("vue").PropType<(v: string) => void>;
571
+ type: import("vue").PropType<import("./type").SaveEvent>;
544
572
  };
545
573
  onUploadImg: {
546
- type: import("vue").PropType<(files: File[], callBack: (urls: string[]) => void) => void>;
574
+ type: import("vue").PropType<import("./type").UploadImgEvent>;
547
575
  };
548
- pageFullScreen: {
576
+ pageFullscreen: {
549
577
  type: import("vue").PropType<boolean>;
550
578
  default: boolean;
551
579
  };
@@ -578,10 +606,10 @@ declare const _default: {
578
606
  default: boolean;
579
607
  };
580
608
  onHtmlChanged: {
581
- type: import("vue").PropType<(h: string) => void>;
609
+ type: import("vue").PropType<import("./type").HtmlChangedEvent>;
582
610
  };
583
611
  onGetCatalog: {
584
- type: import("vue").PropType<(list: import("./type").HeadList[]) => void>;
612
+ type: import("vue").PropType<import("./type").GetCatalogEvent>;
585
613
  };
586
614
  editorId: {
587
615
  type: import("vue").PropType<string>;
@@ -631,7 +659,7 @@ declare const _default: {
631
659
  type: import("vue").PropType<string | JSX.Element>;
632
660
  };
633
661
  onError: {
634
- type: import("vue").PropType<(err: import("./type").InnerError) => void>;
662
+ type: import("vue").PropType<import("./type").ErrorEvent>;
635
663
  };
636
664
  codeTheme: {
637
665
  type: import("vue").PropType<string>;
@@ -658,14 +686,22 @@ declare const _default: {
658
686
  noUploadImg: {
659
687
  type: import("vue").PropType<boolean>;
660
688
  };
689
+ codeStyleReverse: {
690
+ type: import("vue").PropType<boolean>;
691
+ default: boolean;
692
+ };
693
+ codeStyleReverseList: {
694
+ type: import("vue").PropType<string[]>;
695
+ default: string[];
696
+ };
661
697
  }>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "onChange" | "onSave" | "onUploadImg" | "onHtmlChanged" | "onGetCatalog" | "onError" | "update:modelValue", {
698
+ pageFullscreen: boolean;
662
699
  preview: boolean;
663
700
  htmlPreview: boolean;
664
701
  modelValue: string;
665
702
  theme: import("./type").Themes;
666
703
  class: string;
667
704
  historyLength: number;
668
- pageFullScreen: boolean;
669
705
  previewOnly: boolean;
670
706
  language: string;
671
707
  toolbars: import("./type").ToolbarNames[];
@@ -686,6 +722,8 @@ declare const _default: {
686
722
  footers: import("./type").Footers[];
687
723
  scrollAuto: boolean;
688
724
  formatCopiedText: (text: string) => string;
725
+ codeStyleReverse: boolean;
726
+ codeStyleReverseList: string[];
689
727
  }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
690
728
  readonly NormalToolbar: typeof NormalToolbar;
691
729
  readonly DropdownToolbar: typeof DropdownToolbar;