Skip to content

Commit

Permalink
修改版本号
Browse files Browse the repository at this point in the history
  • Loading branch information
pylixm committed Jul 18, 2019
1 parent a0be1e3 commit 6118f6a
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,9 @@ MDEDITOR_CONFIGS = {
    'tex': True, # whether to open the tex chart function
    'flow_chart': True, # whether to open the flow chart function
    'sequence': True, # Whether to open the sequence diagram function
'watch': True # Live preview
'watch': True, # Live preview
'lineWrapping': False, # lineWrapping
'lineNumbers': False # lineNumbers
}

}
Expand Down
4 changes: 3 additions & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,9 @@ MDEDITOR_CONFIGS = {
'tex': True, # 是否开启 tex 图表功能
'flow_chart': True, # 是否开启流程图功能
'sequence': True, # 是否开启序列图功能
'watch': True # 实时预览
'watch': True, # 实时预览
'lineWrapping': False, # 自动换行
'lineNumbers': False # 行号
}
```

Expand Down
4 changes: 3 additions & 1 deletion mdeditor/configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
'flow_chart': True,
'sequence': True,
'language': 'zh', # zh / en
'watch': True # Live preview
'watch': True, # Live preview
'lineWrapping': False, # lineWrapping
'lineNumbers': False # lineNumbers
}


Expand Down
4 changes: 2 additions & 2 deletions mdeditor/templates/markdown.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
$(function () {
editormd("{{ id }}-wmd-wrapper", {
watch: {{ config.watch|lower }}, // 关闭实时预览
lineNumbers: false,
lineWrapping: false,
lineNumbers: {{ config.lineNumbers|lower }},
lineWrapping: {{ config.lineWrapping|lower }},
width: "{{ config.width }}",
height: {{ config.height }},
// 当有多个mdeditor时全屏后其他mdeditor仍然显示解决此问题
Expand Down
4 changes: 3 additions & 1 deletion mdeditor_demo/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@
'flow_chart': True,
'sequence': True,
'language': 'zh', # zh / en
'watch': True # Live preview
'watch': True, # Live preview
'lineWrapping': False, # lineWrapping
'lineNumbers': True # lineNumbers
},
'custom': {
'width': '90%',
Expand Down

0 comments on commit 6118f6a

Please sign in to comment.