Jelajahi Sumber

:alien: options.mode 默认值修改为 `ir`

Liyuan Li 5 tahun lalu
induk
melakukan
a783754f9e
3 mengubah file dengan 6 tambahan dan 3 penghapusan
  1. 4 1
      CHANGELOG.md
  2. 1 1
      README.md
  3. 1 1
      src/ts/util/Options.ts

+ 4 - 1
CHANGELOG.md

@@ -68,7 +68,10 @@
 
 ### v3.3.7 / 2020-07-xx
 
-  
+* [565](https://github.com/Vanessa219/vditor/issues/565) SV 模式支持缩进代码块 `改进功能`
+* [566](https://github.com/Vanessa219/vditor/issues/566) 行级代码解析渲染 `修复缺陷`
+* options.mode 默认值修改为 `ir`
+
 ### v3.3.6 / 2020-07-09
 
 * [555](https://github.com/Vanessa219/vditor/issues/555) SV 模式段落块拆分问题 `修复缺陷`

+ 1 - 1
README.md

@@ -157,7 +157,7 @@ Can be filled with element `id` or element itself` HTMLElement`
 | tab | <kbd>tab</kbd> key operation string, support `\ t` and any string | - |
 | typewriterMode | Whether to enable typewriter mode | false |
 | cdn | Configure self-built CDN address | `https://cdn.jsdelivr.net/npm/vditor@${VDITOR_VERSION}` |
-| mode | Editing mode: sv, ir, wysiwyg | 'wysiwyg' |
+| mode | Editing mode: sv, ir, wysiwyg | 'ir' |
 | debugger | Whether to display the log | false |
 | value | Editor initialization value | '' |
 | theme | Theme: classic, dark | 'classic' |

+ 1 - 1
src/ts/util/Options.ts

@@ -67,7 +67,7 @@ export class Options {
             emojiPath: `${Constants.CDN}/dist/images/emoji`,
         },
         lang: "zh_CN",
-        mode: "wysiwyg",
+        mode: "ir",
         outline: false,
         placeholder: "",
         preview: {