vditor 3.8.18 → 3.9.1

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
@@ -201,7 +201,7 @@ Markdown 输出的 HTML 所展现的外观。内置 ant-design, light,dark,w
201
201
  | minHeight | 编辑区域最小高度 | - |
202
202
  | width | 编辑器总宽度,支持 % | 'auto' |
203
203
  | placeholder | 输入区域为空时的提示 | '' |
204
- | lang | 语言种类:en_US, ja_JP, ko_KR, ru_RU, zh_CN, zh_TW | 'zh_CN' |
204
+ | lang | 语言种类:en_US, fr_FR, ja_JP, ko_KR, ru_RU, sv_SE, zh_CN, zh_TW | 'zh_CN' |
205
205
  | input(value: string) | 输入后触发 | - |
206
206
  | focus(value: string) | 聚焦后触发 | - |
207
207
  | blur(value: string) | 失焦后触发 | - |
@@ -352,6 +352,20 @@ new Vditor('vditor', {
352
352
  | className | 按钮类名 | - |
353
353
  | click(key: string) | 按钮点击回调事件 | - |
354
354
 
355
+ #### options.image
356
+
357
+ | | 说明 | 默认值 |
358
+ | - | - | - |
359
+ | isPreview | 是否预览图片 | true |
360
+ | preview(bom: Element) => void | 图片预览处理 | - |
361
+
362
+ #### options.link
363
+
364
+ | | 说明 | 默认值 |
365
+ | - | - | - |
366
+ | isOpen | 是否打开链接地址 | true |
367
+ | click(bom: Element) => void | 点击链接事件 | - |
368
+
355
369
  #### options.hint
356
370
 
357
371
  | | 说明 | 默认值 |
package/dist/index.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vditor v3.8.18 - A markdown editor written in TypeScript.
2
+ * Vditor v3.9.1 - A markdown editor written in TypeScript.
3
3
  *
4
4
  * MIT License
5
5
  *
@@ -1024,6 +1024,7 @@
1024
1024
  .vditor-reset .language-mindmap,
1025
1025
  .vditor-reset .language-plantuml,
1026
1026
  .vditor-reset .language-mermaid,
1027
+ .vditor-reset .language-markmap,
1027
1028
  .vditor-reset .language-abc,
1028
1029
  .vditor-reset .language-flowchart,
1029
1030
  .vditor-reset .language-graphviz {
@@ -1039,6 +1040,7 @@
1039
1040
  height: 420px;
1040
1041
  }
1041
1042
  .vditor-reset .language-mermaid,
1043
+ .vditor-reset .language-markmap,
1042
1044
  .vditor-reset .language-flowchart,
1043
1045
  .vditor-reset .language-graphviz {
1044
1046
  text-align: center;