1
1
<template >
2
2
<div class =" components-container" >
3
3
<code >Markdown is based on
4
- <a href =" https://github.com/nhnent/tui.editor" target =" _blank" >tui.editor</a > ,Simply encapsulated in Vue.
5
- <a target =" _blank" href =" https://panjiachen.github.io/vue-element-admin-site/feature/component/markdown-editor.html" >
4
+ <a href =" https://github.com/nhnent/tui.editor" target =" _blank" >tui.editor</a > ,simply wrapped with Vue.
5
+ <a
6
+ target =" _blank"
7
+ href =" https://panjiachen.github.io/vue-element-admin-site/feature/component/markdown-editor.html"
8
+ >
6
9
Documentation </a >
7
10
</code >
8
11
9
12
<div class =" editor-container" >
10
13
<el-tag class =" tag-title" >
11
14
Basic:
12
15
</el-tag >
13
- <markdown-editor v-model =" content " height =" 300px" />
16
+ <markdown-editor v-model =" content1 " height =" 300px" />
14
17
</div >
15
18
16
19
<div class =" editor-container" >
17
20
<el-tag class =" tag-title" >
18
21
Markdown Mode:
19
22
</el-tag >
20
- <markdown-editor ref =" markdownEditor" v-model =" content " :options =" {hideModeSwitch:true,previewStyle:'tab'}" height =" 200px" />
23
+ <markdown-editor ref =" markdownEditor" v-model =" content2 " :options =" {hideModeSwitch:true,previewStyle:'tab'}" height =" 200px" />
21
24
</div >
22
25
23
26
<div class =" editor-container" >
24
27
<el-tag class =" tag-title" >
25
28
Customize Toolbar:
26
29
</el-tag >
27
- <markdown-editor
28
- ref =" markdownEditor"
29
- v-model =" content"
30
- :options =" { toolbarItems: ['heading','bold','italic']}"
31
- />
30
+ <markdown-editor v-model =" content3" :options =" { toolbarItems: ['heading','bold','italic']}" />
32
31
</div >
33
32
34
33
<div class =" editor-container" >
35
34
<el-tag class =" tag-title" >
36
35
I18n:
37
36
</el-tag >
38
- <el-alert :closable =" false" title =" You can change the language of the admin system to see the effect" type =" success" />
39
- <markdown-editor v-model =" content" :language =" language" height =" 300px" />
37
+ <el-alert
38
+ :closable =" false"
39
+ title =" You can change the language of the admin system to see the effect"
40
+ type =" success"
41
+ />
42
+ <markdown-editor ref =" markdownEditor" v-model =" content4" :language =" language" height =" 300px" />
40
43
</div >
41
44
42
45
<el-button style =" margin-top :80px ;" type =" primary" icon =" el-icon-document" @click =" getHtml" >
@@ -62,7 +65,10 @@ export default {
62
65
components: { MarkdownEditor },
63
66
data () {
64
67
return {
65
- content: content,
68
+ content1: content,
69
+ content2: content,
70
+ content3: content,
71
+ content4: content,
66
72
html: ' ' ,
67
73
languageTypeList: {
68
74
' en' : ' en_US' ,
0 commit comments