django simplemde是django的wysiwyg降价编辑器
django-simplemde的Python项目详细描述
#django的降价编辑器(带预览版)
在django项目中使用降价编辑器https://github.com/nextstepwebs/simplemde-markdown-editor,这个项目的灵感来自于https://github.com/douglasmiranda/django-wysiwyg-redactor/
入门
*安装django simplemde
`````
pip安装django simplemde
``````
*在已安装的应用程序中添加“simplemde”。
``python
已安装的应用程序=(
…
‘emsimplemde’,
verbose_name=u'title')
content=simplemdefield(verbose_name=u'mardown content')
````
simplemde options
您可以在设置中设置simplemde options。py如下:
``python
simplemde options={
'placeholder':'haha',
'status':false,
“autosave”:{
“enabled”:true
}
}
`````
这个插件现在支持[simplemde配置](https://github.com/nextstepwebs/simplemde markdown editor配置),但只支持静态配置(不支持像``previewrender```这样的js配置)
**设置后,该插件将自动用python的uuid.uuid4生成uniqueid***
```
在django项目中使用降价编辑器https://github.com/nextstepwebs/simplemde-markdown-editor,这个项目的灵感来自于https://github.com/douglasmiranda/django-wysiwyg-redactor/
入门
*安装django simplemde
`````
pip安装django simplemde
``````
*在已安装的应用程序中添加“simplemde”。
``python
已安装的应用程序=(
…
‘emsimplemde’,
verbose_name=u'title')
content=simplemdefield(verbose_name=u'mardown content')
````
simplemde options
您可以在设置中设置simplemde options。py如下:
``python
simplemde options={
'placeholder':'haha',
'status':false,
“autosave”:{
“enabled”:true
}
}
`````
这个插件现在支持[simplemde配置](https://github.com/nextstepwebs/simplemde markdown editor配置),但只支持静态配置(不支持像``previewrender```这样的js配置)
**设置后,该插件将自动用python的uuid.uuid4生成uniqueid***
```