Skip to content

Commit 9ceb6bc

Browse files
committed
docs: update docs
1 parent 892c452 commit 9ceb6bc

File tree

4 files changed

+34
-18
lines changed

4 files changed

+34
-18
lines changed

docs/Internationalization.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,16 @@ VueMarkdownEditor.lang.add({
3434

3535
## Config files
3636

37-
| Language | Filename |
38-
| -------- | -------- |
39-
| Chinese | zh-CN |
40-
| English | en-US |
41-
| German | de-DE |
42-
| Korean | ko-KR |
43-
| Spanish | es-ES |
44-
| Polish | pl-PL |
45-
| French | fr-FR |
37+
| Language | Filename |
38+
| ------------------------ | -------- |
39+
| Chinese | zh-CN |
40+
| Traditional Chinese (TW) | zh-TW |
41+
| English | en-US |
42+
| German | de-DE |
43+
| Korean | ko-KR |
44+
| Spanish | es-ES |
45+
| Polish | pl-PL |
46+
| French | fr-FR |
47+
| Russian | ru-RU |
4648

4749
View all language configs [Here](https://github.com/code-farmer-i/vue-markdown-editor/tree/dev/src/lang).

docs/api.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,12 @@ demo:[Custom toolbar](./senior/toolbar.md)
228228

229229
Event triggered when the content changes. text is the input content, and html is the html string after parsing.
230230

231+
### blur
232+
233+
-Callback parameters: `(event)`
234+
235+
Fires when the editor loses focus.
236+
231237
### save
232238

233239
- Callback parameter:`(text, html)`

docs/zh/Internationalization.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,16 @@ VueMarkdownEditor.lang.add({
3434

3535
## 配置文件
3636

37-
| 语言 | 文件名 |
38-
| -------- | ------ |
39-
| 简体中文 | zh-CN |
40-
| 英语 | en-US |
41-
| 德语 | de-DE |
42-
| 韩文 | ko-KR |
43-
| 西班牙语 | es-ES |
44-
| 波兰语 | pl-PL |
45-
| 法语 | fr-FR |
37+
| 语言 | 文件名 |
38+
| -------------- | ------ |
39+
| 简体中文 | zh-CN |
40+
| 繁體中文(台) | zh-TW |
41+
| 英语 | en-US |
42+
| 德语 | de-DE |
43+
| 韩文 | ko-KR |
44+
| 西班牙语 | es-ES |
45+
| 波兰语 | pl-PL |
46+
| 法语 | fr-FR |
47+
| 俄罗斯语 | ru-RU |
4648

4749
[这里](https://github.com/code-farmer-i/vue-markdown-editor/tree/dev/src/lang) 查看所有的 i18n 配置文件

docs/zh/api.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,12 @@ editor.insert((selected) => {
271271

272272
内容变化时触发的事件。text 为输入的内容,html 为解析之后的 html 字符串。
273273

274+
### blur
275+
276+
- 回调参数:`(event)`
277+
278+
编辑器失去焦点时触发。
279+
274280
### save
275281

276282
- 回调参数:`(text, html)`

0 commit comments

Comments
 (0)