Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
pylixm committed Apr 13, 2020
2 parents 0b29767 + d0bf4fa commit 5b63848
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ verify_ssl = true
name = "pypi"

[packages]
django = "==2.1.11"
django = "==2.2.10"
django-mdeditor = "*"

[dev-packages]
15 changes: 11 additions & 4 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ admin.site.register(demo_models.ExampleModel, ExampleModelAdmin)
`settings` 中增加如下配置 :
```python
MDEDITOR_CONFIGS = {
'default':{
'width': '90%', # 自定义编辑框宽度
'heigth': 500, # 自定义编辑框高度
'toolbar': ["undo", "redo", "|",
Expand All @@ -214,6 +215,7 @@ MDEDITOR_CONFIGS = {
'watch': True, # 实时预览
'lineWrapping': False, # 自动换行
'lineNumbers': False # 行号
}
}
```

Expand Down

0 comments on commit 5b63848

Please sign in to comment.