这个可重用的django应用程序使用wysiwyg editor redactorjs.com
django-redactor-2.0的Python项目详细描述
#django wysiwyg redactor
已更新,可与django 2.0.x一起使用
(django redactorjs的版本已修改)
某些更改:
*插件redactorjs 7.6.3的版本(也更改[许可证](“许可证”)
*新的api方法`$(“redactor”).getselection()`在编辑器中获取所选内容
*新的api方法`$('\redactor').get settings()`您可以随时获取并设置设置
*删除一些ajax调用,(模式窗口),为了避免在产品Env.BR/> *的交叉域问题,在加载ReaTeaBaseBR/>之后,您可以加载一些脚本来做更多的事情。现在RedioToActer工具栏更具响应性:BR/> *修复一些bug,修改事物……BR/> BR/>屏幕截图
BR/>img src=“http s://raw.github.com/douglasmiranda/django-wysiwyg-redactor/master/static/img/screenshot.png”>;
----
*django-wysiwyg-redactor是django的可重用应用程序,使用wysiwyg编辑器http://redactorjs.com/*
--
-`django>;对于静态文件
-`pil``对于图像上传
入门入门
——
>
>
*安装django wysiwwwyg redactor:
`````
==1.3```对于静态文件
=1.3````对于静态文件
>
*在已安装的应用程序中添加'url(r'^redactor/',include('redactor.redactor.redactor.redactor.redactor.redactor/''''redactor.redactor.redact网址')`,到url.py
*在settings.py中添加默认配置(更多设置请参见:<;https://github.com/douglasmiranda/django wysiwyg redactor/wiki/settings>;)用法:
``python
REDACTOR_OPTIONS={'lang':'en'}
REDACTOR_UPLOAD='uploads/'
````
详细名称=u'title')
短文本=redactorfield(详细名称=u'text')
`````
或使用自定义参数:
``python
短文本=redactorfield(
详细名称=u'text',
redactor选项={'lang':'en','focus':'true'},
上传到'tmp/'
)
```
仅用于管理接口
----------
``python
从django导入表单
从redactor导入。widgets从blog导入redactorditor
。models导入条目
class entryadminform(forms.modelform):
类meta:
model=entry
widgets={
“短文本”:redactoreditor(),
}
类entryadmin(admin.modeladmin):
form=entryadminform
````
`redactoreditor`采用与“redactorfield”相同的参数
许可证](http://creativecommons.org/licenses/by nc/3.0/)
用于商业用途,请在此处购买许可证:http://redactorjs.com/download/或使用早期版本。
已更新,可与django 2.0.x一起使用
(django redactorjs的版本已修改)
某些更改:
*插件redactorjs 7.6.3的版本(也更改[许可证](“许可证”)
*新的api方法`$(“redactor”).getselection()`在编辑器中获取所选内容
*新的api方法`$('\redactor').get settings()`您可以随时获取并设置设置
*删除一些ajax调用,(模式窗口),为了避免在产品Env.BR/> *的交叉域问题,在加载ReaTeaBaseBR/>之后,您可以加载一些脚本来做更多的事情。现在RedioToActer工具栏更具响应性:BR/> *修复一些bug,修改事物……BR/> BR/>屏幕截图
BR/>img src=“http s://raw.github.com/douglasmiranda/django-wysiwyg-redactor/master/static/img/screenshot.png”>;
----
*django-wysiwyg-redactor是django的可重用应用程序,使用wysiwyg编辑器http://redactorjs.com/*
--
-`django>;对于静态文件
-`pil``对于图像上传
入门入门
——
>
>
*安装django wysiwwwyg redactor:
`````
==1.3```对于静态文件
=1.3````对于静态文件
>
*在已安装的应用程序中添加'url(r'^redactor/',include('redactor.redactor.redactor.redactor.redactor.redactor/''''redactor.redactor.redact网址')`,到url.py
*在settings.py中添加默认配置(更多设置请参见:<;https://github.com/douglasmiranda/django wysiwyg redactor/wiki/settings>;)用法:
``python
REDACTOR_OPTIONS={'lang':'en'}
REDACTOR_UPLOAD='uploads/'
````
详细名称=u'title')
短文本=redactorfield(详细名称=u'text')
`````
或使用自定义参数:
``python
短文本=redactorfield(
详细名称=u'text',
redactor选项={'lang':'en','focus':'true'},
上传到'tmp/'
)
```
仅用于管理接口
----------
``python
从django导入表单
从redactor导入。widgets从blog导入redactorditor
。models导入条目
class entryadminform(forms.modelform):
类meta:
model=entry
widgets={
“短文本”:redactoreditor(),
}
类entryadmin(admin.modeladmin):
form=entryadminform
````
`redactoreditor`采用与“redactorfield”相同的参数
许可证](http://creativecommons.org/licenses/by nc/3.0/)
用于商业用途,请在此处购买许可证:http://redactorjs.com/download/或使用早期版本。