zhangfisher 13 năm trước cách đây
mục cha
commit
9f02b2b323
4 tập tin đã thay đổi với 580 bổ sung35 xóa
  1. 73 0
      DjangoUeditor/readme.txt
  2. 0 1
      DjangoUeditor/views.py
  3. 473 0
      MANIFEST
  4. 34 34
      readme.txt

+ 73 - 0
DjangoUeditor/readme.txt

@@ -0,0 +1,73 @@
+Ueditor HTML编辑器是百度开源的HTML编辑器,
+
+本模块帮助在Django应用中集成百度Ueditor HTML编辑器。
+安装包中已经集成Ueditor v1.2.2
+
+使用Django-Ueditor非常简单,方法如下:
+
+1、安装方法
+	
+	**方法一:下载安装包,在命令行运行:
+		python setup.py install
+	**方法二:使用pip工具在命令行运行(推荐):
+   		pip install DjangoUeditor
+
+2、在INSTALL_APPS里面增加DjangoUeditor app,如下:
+     
+		INSTALLED_APPS = (
+			#........
+    		'DjangoUeditor',
+		)
+
+
+3、在urls.py中增加:
+
+	url(r'^ueditor/',include('DjangoUeditor.urls' ),name='ueditor'),
+
+4、在models中这样定义:
+	
+	from DjangoUeditor.models import UEditorField
+	class Blog(models.Model):
+    	Name=models.CharField(,max_length=100,blank=True)
+    	Content=UEditorField('内容	',height=100,width=500,default='test',imagePath="uploadimg/",imageManagerPath="imglib",toolbars='mini',options={"elementPathEnabled":True},filePath='upload',blank=True)
+
+	说明:
+	UEditorField继承自models.TextField,因此你可以直接将model里面定义的models.TextField直接改成UEditorField即可。
+	UEditorField提供了额外的参数:
+        toolbars:配置你想显示的工具栏,取值为mini,normal,full,代表小,一般,全部。如果默认的工具栏不符合您的要求,您可以在settings里面配置自己的显示按钮。参见后面介绍。
+        imagePath:图片上传的路径,如"images/",实现上传到"{{MEDIA_ROOT}}/images"文件夹
+        filePath:附件上传的路径,如"files/",实现上传到"{{MEDIA_ROOT}}/files"文件夹
+        imageManagerPath:图片管理器显示的路径,如"imglib/",实现上传到"{{MEDIA_ROOT}}/imglib",如果不指定则默认=imagepath。
+        options:其他UEditor参数,字典类型。参见Ueditor的文档ueditor_config.js里面的说明。
+        css:编辑器textarea的CSS样式
+        width,height:编辑器的宽度和高度,以像素为单位。
+
+5、在表单中使用非常简单,与常规的form字段没什么差别,如下:
+	
+	class TestUeditorModelForm(forms.ModelForm):
+    	class Meta:
+        	model=Blog
+	***********************************
+	如果不是用ModelForm,可以有两种方法使用:
+
+	1: 使用forms.UEditorField
+
+	from  DjangoUeditor.forms import UEditorField
+	class TestUEditorForm(forms.Form):
+	    Description=UEditorField("描述",initial="abc",width=600,height=800)
+	
+	2: widgets.UEditorWidget
+
+	from  DjangoUeditor.widgets import UEditorWidget
+	class TestUEditorForm(forms.Form):
+		Content=forms.CharField(label="内容",widget=UEditorWidget(width=800,height=500, imagePath='aa', filePath='bb',toolbars={}))
+	
+	widgets.UEditorWidget和forms.UEditorField的输入参数与上述models.UEditorField一样。
+
+
+6、其他事项:
+
+    **本程序基于百度ueditor 1.2.2,安装包里面已经包括了,不需要再额外安装。
+    **目前暂时不支持ueditor的插件
+    **Django默认开启了CSRF中间件,因此如果你的表单没有加入{% csrf_token %},那么当您上传文件和图片时会失败
+    **支持Django的admin界面,但是工具栏显示会有缩进,目前还不知道怎么解决,可能是django的CSS有冲突。

+ 0 - 1
DjangoUeditor/views.py

@@ -1,6 +1,5 @@
 #coding:utf-8
 from django.http import HttpResponse
-from  PIL import Image
 import settings as USettings
 import os
 from  utils import GenerateRndFilename

+ 473 - 0
MANIFEST

@@ -0,0 +1,473 @@
+# file GENERATED by distutils, do NOT edit
+README.txt
+setup.py
+DjangoUeditor\__init__.py
+DjangoUeditor\forms.py
+DjangoUeditor\models.py
+DjangoUeditor\settings.py
+DjangoUeditor\urls.py
+DjangoUeditor\utils.py
+DjangoUeditor\views.py
+DjangoUeditor\widgets.py
+DjangoUeditor\static\UEditor\CHANGELOG.TXT
+DjangoUeditor\static\UEditor\editor_all.js
+DjangoUeditor\static\UEditor\editor_all_min.js
+DjangoUeditor\static\UEditor\editor_config.js
+DjangoUeditor\static\UEditor\dialogs\internal.js
+DjangoUeditor\static\UEditor\dialogs\tangram.js
+DjangoUeditor\static\UEditor\dialogs\anchor\anchor.html
+DjangoUeditor\static\UEditor\dialogs\attachment\attachment.css
+DjangoUeditor\static\UEditor\dialogs\attachment\attachment.html
+DjangoUeditor\static\UEditor\dialogs\attachment\callbacks.js
+DjangoUeditor\static\UEditor\dialogs\attachment\fileTypeMaps.js
+DjangoUeditor\static\UEditor\dialogs\attachment\fileTypeImages\icon_chm.gif
+DjangoUeditor\static\UEditor\dialogs\attachment\fileTypeImages\icon_default.png
+DjangoUeditor\static\UEditor\dialogs\attachment\fileTypeImages\icon_doc.gif
+DjangoUeditor\static\UEditor\dialogs\attachment\fileTypeImages\icon_exe.gif
+DjangoUeditor\static\UEditor\dialogs\attachment\fileTypeImages\icon_mp3.gif
+DjangoUeditor\static\UEditor\dialogs\attachment\fileTypeImages\icon_mv.gif
+DjangoUeditor\static\UEditor\dialogs\attachment\fileTypeImages\icon_pdf.gif
+DjangoUeditor\static\UEditor\dialogs\attachment\fileTypeImages\icon_ppt.gif
+DjangoUeditor\static\UEditor\dialogs\attachment\fileTypeImages\icon_psd.gif
+DjangoUeditor\static\UEditor\dialogs\attachment\fileTypeImages\icon_rar.gif
+DjangoUeditor\static\UEditor\dialogs\attachment\fileTypeImages\icon_txt.gif
+DjangoUeditor\static\UEditor\dialogs\attachment\fileTypeImages\icon_xls.gif
+DjangoUeditor\static\UEditor\dialogs\code\code.html
+DjangoUeditor\static\UEditor\dialogs\emotion\emotion.css
+DjangoUeditor\static\UEditor\dialogs\emotion\emotion.html
+DjangoUeditor\static\UEditor\dialogs\emotion\emotion.js
+DjangoUeditor\static\UEditor\dialogs\emotion\images\0.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bface.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\cface.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\fface.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jxface2.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\neweditor-tab-bg.png
+DjangoUeditor\static\UEditor\dialogs\emotion\images\tface.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\wface.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\yface.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\babycat\C_0001.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\babycat\C_0002.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\babycat\C_0003.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\babycat\C_0004.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\babycat\C_0005.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\babycat\C_0006.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\babycat\C_0007.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\babycat\C_0008.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\babycat\C_0009.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\babycat\C_0010.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\babycat\C_0011.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\babycat\C_0012.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\babycat\C_0013.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\babycat\C_0014.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\babycat\C_0015.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\babycat\C_0016.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\babycat\C_0017.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\babycat\C_0018.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\babycat\C_0019.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\babycat\C_0020.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0001.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0002.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0003.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0004.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0005.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0006.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0007.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0008.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0009.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0010.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0011.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0012.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0013.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0014.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0015.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0016.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0017.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0018.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0019.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0020.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0021.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0022.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0023.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0024.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0025.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0026.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0027.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0028.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0029.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0030.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0031.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0032.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0033.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0034.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0035.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0036.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0037.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0038.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0039.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0040.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0041.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0042.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0043.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0044.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0045.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0046.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0047.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0048.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0049.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0050.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0051.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0052.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0053.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0054.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0055.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0056.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0057.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0058.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0059.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0060.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0061.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0062.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\bobo\b_0063.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_01.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_02.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_03.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_04.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_05.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_06.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_07.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_08.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_09.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_10.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_11.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_12.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_13.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_14.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_15.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_16.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_17.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_18.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_19.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_20.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_21.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_22.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_23.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_24.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_25.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_26.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_27.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_28.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_29.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_30.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_31.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_32.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_33.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_34.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_35.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_36.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_37.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_38.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_39.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_40.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_41.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_42.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_43.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_44.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_45.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_46.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_47.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_48.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_49.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\face\i_f_50.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0001.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0002.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0003.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0004.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0005.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0006.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0007.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0008.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0009.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0010.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0011.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0012.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0013.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0014.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0015.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0016.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0017.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0018.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0019.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0020.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0021.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0022.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0023.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0024.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0025.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0026.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0027.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0028.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0029.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0030.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0031.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0032.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0033.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0034.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0035.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0036.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0037.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0038.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0039.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0040.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0041.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0042.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0043.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0044.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0045.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0046.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0047.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0048.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0049.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0050.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0051.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0052.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0053.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0054.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0055.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0056.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0057.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0058.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0059.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0060.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0061.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0062.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0063.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0064.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0065.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0066.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0067.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0068.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0069.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0070.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0071.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0072.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0073.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0074.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0075.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0076.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0077.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0078.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0079.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0080.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0081.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0082.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0083.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\jx2\j_0084.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0001.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0002.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0003.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0004.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0005.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0006.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0007.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0008.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0009.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0010.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0011.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0012.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0013.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0014.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0015.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0016.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0017.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0018.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0019.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0020.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0021.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0022.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0023.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0024.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0025.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0026.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0027.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0028.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0029.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0030.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0031.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0032.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0033.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0034.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0035.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0036.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0037.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0038.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0039.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0040.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0041.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0042.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0043.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0044.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0045.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0046.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0047.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0048.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0049.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0050.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0051.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\ldw\w_0052.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\tsj\t_0001.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\tsj\t_0002.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\tsj\t_0003.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\tsj\t_0004.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\tsj\t_0005.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\tsj\t_0006.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\tsj\t_0007.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\tsj\t_0008.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\tsj\t_0009.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\tsj\t_0010.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\tsj\t_0011.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\tsj\t_0012.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\tsj\t_0013.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\tsj\t_0014.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\tsj\t_0015.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\tsj\t_0016.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\tsj\t_0017.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\tsj\t_0018.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\tsj\t_0019.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\tsj\t_0020.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\tsj\t_0021.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\tsj\t_0022.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\tsj\t_0023.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\tsj\t_0024.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\tsj\t_0025.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\tsj\t_0026.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\tsj\t_0027.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\tsj\t_0028.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\tsj\t_0029.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\tsj\t_0030.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\tsj\t_0031.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\tsj\t_0032.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\tsj\t_0033.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\tsj\t_0034.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\tsj\t_0035.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\tsj\t_0036.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\tsj\t_0037.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\tsj\t_0038.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\tsj\t_0039.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\tsj\t_0040.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\youa\y_0001.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\youa\y_0002.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\youa\y_0003.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\youa\y_0004.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\youa\y_0005.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\youa\y_0006.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\youa\y_0007.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\youa\y_0008.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\youa\y_0009.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\youa\y_0010.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\youa\y_0011.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\youa\y_0012.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\youa\y_0013.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\youa\y_0014.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\youa\y_0015.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\youa\y_0016.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\youa\y_0017.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\youa\y_0018.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\youa\y_0019.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\youa\y_0020.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\youa\y_0021.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\youa\y_0022.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\youa\y_0023.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\youa\y_0024.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\youa\y_0025.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\youa\y_0026.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\youa\y_0027.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\youa\y_0028.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\youa\y_0029.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\youa\y_0030.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\youa\y_0031.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\youa\y_0032.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\youa\y_0033.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\youa\y_0034.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\youa\y_0035.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\youa\y_0036.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\youa\y_0037.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\youa\y_0038.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\youa\y_0039.gif
+DjangoUeditor\static\UEditor\dialogs\emotion\images\youa\y_0040.gif
+DjangoUeditor\static\UEditor\dialogs\gmap\gmap.html
+DjangoUeditor\static\UEditor\dialogs\help\help.html
+DjangoUeditor\static\UEditor\dialogs\image\image.css
+DjangoUeditor\static\UEditor\dialogs\image\image.html
+DjangoUeditor\static\UEditor\dialogs\image\image.js
+DjangoUeditor\static\UEditor\dialogs\image\imageUploader.swf
+DjangoUeditor\static\UEditor\dialogs\insertframe\insertframe.html
+DjangoUeditor\static\UEditor\dialogs\link\link.html
+DjangoUeditor\static\UEditor\dialogs\map\map.html
+DjangoUeditor\static\UEditor\dialogs\searchreplace\searchreplace.html
+DjangoUeditor\static\UEditor\dialogs\snapscreen\snapscreen.html
+DjangoUeditor\static\UEditor\dialogs\spechars\spechars.html
+DjangoUeditor\static\UEditor\dialogs\table\edittd.html
+DjangoUeditor\static\UEditor\dialogs\table\table.html
+DjangoUeditor\static\UEditor\dialogs\table\table.js
+DjangoUeditor\static\UEditor\dialogs\video\video.css
+DjangoUeditor\static\UEditor\dialogs\video\video.html
+DjangoUeditor\static\UEditor\dialogs\video\video.js
+DjangoUeditor\static\UEditor\dialogs\webapp\webapp.html
+DjangoUeditor\static\UEditor\dialogs\wordimage\fClipboard_ueditor.swf
+DjangoUeditor\static\UEditor\dialogs\wordimage\imageUploader.swf
+DjangoUeditor\static\UEditor\dialogs\wordimage\wordimage.html
+DjangoUeditor\static\UEditor\dialogs\wordimage\wordimage.js
+DjangoUeditor\static\UEditor\themes\default\iframe.css
+DjangoUeditor\static\UEditor\themes\default\ueditor.css
+DjangoUeditor\static\UEditor\themes\default\images\anchor.gif
+DjangoUeditor\static\UEditor\themes\default\images\arrow.png
+DjangoUeditor\static\UEditor\themes\default\images\button-bg.gif
+DjangoUeditor\static\UEditor\themes\default\images\cancelbutton.gif
+DjangoUeditor\static\UEditor\themes\default\images\center_focus.jpg
+DjangoUeditor\static\UEditor\themes\default\images\copy.png
+DjangoUeditor\static\UEditor\themes\default\images\dialog-title-bg.png
+DjangoUeditor\static\UEditor\themes\default\images\fileScan.png
+DjangoUeditor\static\UEditor\themes\default\images\icons-all.gif
+DjangoUeditor\static\UEditor\themes\default\images\icons.gif
+DjangoUeditor\static\UEditor\themes\default\images\icons.png
+DjangoUeditor\static\UEditor\themes\default\images\imgLable.png
+DjangoUeditor\static\UEditor\themes\default\images\left.jpg
+DjangoUeditor\static\UEditor\themes\default\images\left_focus.jpg
+DjangoUeditor\static\UEditor\themes\default\images\localimage.png
+DjangoUeditor\static\UEditor\themes\default\images\lock.gif
+DjangoUeditor\static\UEditor\themes\default\images\logo.png
+DjangoUeditor\static\UEditor\themes\default\images\neweditor-tab-bg.png
+DjangoUeditor\static\UEditor\themes\default\images\none.jpg
+DjangoUeditor\static\UEditor\themes\default\images\none_focus.jpg
+DjangoUeditor\static\UEditor\themes\default\images\pagebreak.gif
+DjangoUeditor\static\UEditor\themes\default\images\right.jpg
+DjangoUeditor\static\UEditor\themes\default\images\right_focus.jpg
+DjangoUeditor\static\UEditor\themes\default\images\spacer.gif
+DjangoUeditor\static\UEditor\themes\default\images\toolbar_bg.png
+DjangoUeditor\static\UEditor\themes\default\images\topbottom.jpg
+DjangoUeditor\static\UEditor\themes\default\images\topbottom_focus.jpg
+DjangoUeditor\static\UEditor\themes\default\images\upload.png
+DjangoUeditor\static\UEditor\themes\default\images\videologo.gif
+DjangoUeditor\static\UEditor\themes\default\images\word.gif
+DjangoUeditor\static\UEditor\themes\default\images\menu\sparator_v.png
+DjangoUeditor\static\UEditor\themes\default\images\tablepicker\highlighted.gif
+DjangoUeditor\static\UEditor\themes\default\images\tablepicker\unhighlighted.gif
+DjangoUeditor\static\UEditor\third-party\source code for imgupload with flash.zip
+DjangoUeditor\static\UEditor\third-party\SyntaxHighlighter\shCore.js
+DjangoUeditor\static\UEditor\third-party\SyntaxHighlighter\shCoreDefault.css
+DjangoUeditor\static\UEditor\third-party\codemirror2.15\codemirror.css
+DjangoUeditor\static\UEditor\third-party\codemirror2.15\codemirror.js
+DjangoUeditor\static\UEditor\third-party\snapscreen\Snapsie.dll
+DjangoUeditor\static\UEditor\third-party\snapscreen\UEditorSnapscreen.exe
+DjangoUeditor\static\UEditor\third-party\snapscreen\setup.exe
+DjangoUeditor\static\UEditor\third-party\snapscreen\test.html
+DjangoUeditor\static\UEditor\third-party\snapscreen\user_manual.txt
+DjangoUeditor\static\UEditor\third-party\swfupload\fileprogress.js
+DjangoUeditor\static\UEditor\third-party\swfupload\swfupload.cookies.js
+DjangoUeditor\static\UEditor\third-party\swfupload\swfupload.js
+DjangoUeditor\static\UEditor\third-party\swfupload\swfupload.proxy.js
+DjangoUeditor\static\UEditor\third-party\swfupload\swfupload.queue.js
+DjangoUeditor\static\UEditor\third-party\swfupload\swfupload.speed.js
+DjangoUeditor\static\UEditor\third-party\swfupload\swfupload.swf
+DjangoUeditor\static\UEditor\third-party\swfupload\swfupload_fp9.swf
+DjangoUeditor\templates\ueditor.html

+ 34 - 34
readme.txt

@@ -1,18 +1,18 @@
-Ueditor HTML编辑器是百度开源的HTML编辑器,
+Ueditor HTML缂栬緫鍣ㄦ槸鐧惧害寮€婧愮殑HTML缂栬緫鍣�紝
 
-本模块帮助在Django应用中集成百度Ueditor HTML编辑器。
-安装包中已经集成Ueditor v1.2.2
+鏈�ā鍧楀府鍔╁湪Django搴旂敤涓�泦鎴愮櫨搴�editor HTML缂栬緫鍣ㄣ€�
+瀹夎�鍖呬腑宸茬粡闆嗘垚Ueditor v1.2.2
 
-使用Django-Ueditor非常简单,方法如下:
+浣跨敤Django-Ueditor闈炲父绠€鍗曪紝鏂规硶濡備笅锛�
 
-1、安装方法
+1銆佸畨瑁呮柟娉�
 	
-	**方法一:下载安装包,在命令行运行:
+	**鏂规硶涓€锛氫笅杞藉畨瑁呭寘锛屽湪鍛戒护琛岃繍琛岋細
 		python setup.py install
-	**方法二:使用pip工具在命令行运行(推荐):
+	**鏂规硶浜岋細浣跨敤pip宸ュ叿鍦ㄥ懡浠よ�杩愯�(鎺ㄨ崘)锛�
    		pip install DjangoUeditor
 
-2、在INSTALL_APPS里面增加DjangoUeditor app,如下:
+2銆佸湪INSTALL_APPS閲岄潰澧炲姞DjangoUeditor app锛屽�涓嬶細
      
 		INSTALLED_APPS = (
 			#........
@@ -20,54 +20,54 @@ Ueditor HTML
 		)
 
 
-3、在urls.py中增加:
+3銆佸湪urls.py涓��鍔狅細
 
 	url(r'^ueditor/',include('DjangoUeditor.urls' ),name='ueditor'),
 
-4、在models中这样定义:
+4銆佸湪models涓�繖鏍峰畾涔夛細
 	
 	from DjangoUeditor.models import UEditorField
 	class Blog(models.Model):
     	Name=models.CharField(,max_length=100,blank=True)
-    	Content=UEditorField('内容	',height=100,width=500,default='test',imagePath="uploadimg/",imageManagerPath="imglib",toolbars='mini',options={"elementPathEnabled":True},filePath='upload',blank=True)
-
-	说明:
-	UEditorField继承自models.TextField,因此你可以直接将model里面定义的models.TextField直接改成UEditorField即可。
-	UEditorField提供了额外的参数:
-        toolbars:配置你想显示的工具栏,取值为mini,normal,full,代表小,一般,全部。如果默认的工具栏不符合您的要求,您可以在settings里面配置自己的显示按钮。参见后面介绍。
-        imagePath:图片上传的路径,如"images/",实现上传到"{{MEDIA_ROOT}}/images"文件夹
-        filePath:附件上传的路径,如"files/",实现上传到"{{MEDIA_ROOT}}/files"文件夹
-        imageManagerPath:图片管理器显示的路径,如"imglib/",实现上传到"{{MEDIA_ROOT}}/imglib",如果不指定则默认=imagepath。
-        options:其他UEditor参数,字典类型。参见Ueditor的文档ueditor_config.js里面的说明。
-        css:编辑器textarea的CSS样式
-        width,height:编辑器的宽度和高度,以像素为单位。
-
-5、在表单中使用非常简单,与常规的form字段没什么差别,如下:
+    	Content=UEditorField('鍐呭�	',height=100,width=500,default='test',imagePath="uploadimg/",imageManagerPath="imglib",toolbars='mini',options={"elementPathEnabled":True},filePath='upload',blank=True)
+
+	璇存槑锛�
+	UEditorField缁ф壙鑷猰odels.TextField,鍥犳�浣犲彲浠ョ洿鎺ュ皢model閲岄潰瀹氫箟鐨刴odels.TextField鐩存帴鏀规垚UEditorField鍗冲彲銆�
+	UEditorField鎻愪緵浜嗛�澶栫殑鍙傛暟锛�
+        toolbars:閰嶇疆浣犳兂鏄剧ず鐨勫伐鍏锋爮锛屽彇鍊间负mini,normal,full锛屼唬琛ㄥ皬锛屼竴鑸�紝鍏ㄩ儴銆傚�鏋滈粯璁ょ殑宸ュ叿鏍忎笉绗﹀悎鎮ㄧ殑瑕佹眰锛屾偍鍙�互鍦╯ettings閲岄潰閰嶇疆鑷�繁鐨勬樉绀烘寜閽�€傚弬瑙佸悗闈�粙缁嶃€�
+        imagePath:鍥剧墖涓婁紶鐨勮矾寰�,濡�"images/",瀹炵幇涓婁紶鍒�"{{MEDIA_ROOT}}/images"鏂囦欢澶�
+        filePath:闄勪欢涓婁紶鐨勮矾寰�,濡�"files/",瀹炵幇涓婁紶鍒�"{{MEDIA_ROOT}}/files"鏂囦欢澶�
+        imageManagerPath:鍥剧墖绠$悊鍣ㄦ樉绀虹殑璺�緞锛屽�"imglib/",瀹炵幇涓婁紶鍒�"{{MEDIA_ROOT}}/imglib",濡傛灉涓嶆寚瀹氬垯榛樿�=imagepath銆�
+        options锛氬叾浠朥Editor鍙傛暟锛屽瓧鍏哥被鍨嬨€傚弬瑙乁editor鐨勬枃妗�editor_config.js閲岄潰鐨勮�鏄庛€�
+        css:缂栬緫鍣╰extarea鐨凜SS鏍峰紡
+        width锛宧eight:缂栬緫鍣ㄧ殑瀹藉害鍜岄珮搴︼紝浠ュ儚绱犱负鍗曚綅銆�
+
+5銆佸湪琛ㄥ崟涓�娇鐢ㄩ潪甯哥畝鍗曪紝涓庡父瑙勭殑form瀛楁�娌′粈涔堝樊鍒�紝濡備笅锛�
 	
 	class TestUeditorModelForm(forms.ModelForm):
     	class Meta:
         	model=Blog
 	***********************************
-	如果不是用ModelForm,可以有两种方法使用:
+	濡傛灉涓嶆槸鐢∕odelForm锛屽彲浠ユ湁涓ょ�鏂规硶浣跨敤锛�
 
-	1: 使用forms.UEditorField
+	1: 浣跨敤forms.UEditorField
 
 	from  DjangoUeditor.forms import UEditorField
 	class TestUEditorForm(forms.Form):
-	    Description=UEditorField("描述",initial="abc",width=600,height=800)
+	    Description=UEditorField("鎻忚堪",initial="abc",width=600,height=800)
 	
 	2: widgets.UEditorWidget
 
 	from  DjangoUeditor.widgets import UEditorWidget
 	class TestUEditorForm(forms.Form):
-		Content=forms.CharField(label="内容",widget=UEditorWidget(width=800,height=500, imagePath='aa', filePath='bb',toolbars={}))
+		Content=forms.CharField(label="鍐呭�",widget=UEditorWidget(width=800,height=500, imagePath='aa', filePath='bb',toolbars={}))
 	
-	widgets.UEditorWidget和forms.UEditorField的输入参数与上述models.UEditorField一样。
+	widgets.UEditorWidget鍜宖orms.UEditorField鐨勮緭鍏ュ弬鏁颁笌涓婅堪models.UEditorField涓€鏍枫€�
 
 
-6、其他事项:
+6銆佸叾浠栦簨椤癸細
 
-    **本程序基于百度ueditor 1.2.2,安装包里面已经包括了,不需要再额外安装。
-    **目前暂时不支持ueditor的插件
-	**Django默认开启了CSRF中间件,因此如果你的表单没有加入{% csrf_token %},那么当您上传文件和图片时会失败
-    **支持Django的admin界面,但是工具栏显示会有缩进,目前还不知道怎么解决,可能是django的CSS有冲突。
+    **鏈�▼搴忓熀浜庣櫨搴�editor 1.2.2锛屽畨瑁呭寘閲岄潰宸茬粡鍖呮嫭浜嗭紝涓嶉渶瑕佸啀棰濆�瀹夎�銆�
+    **鐩�墠鏆傛椂涓嶆敮鎸乽editor鐨勬彃浠�
+    **Django榛樿�寮€鍚�簡CSRF涓�棿浠讹紝鍥犳�濡傛灉浣犵殑琛ㄥ崟娌℃湁鍔犲叆{% csrf_token %}锛岄偅涔堝綋鎮ㄤ笂浼犳枃浠跺拰鍥剧墖鏃朵細澶辫触
+    **鏀�寔Django鐨刟dmin鐣岄潰锛屼絾鏄�伐鍏锋爮鏄剧ず浼氭湁缂╄繘锛岀洰鍓嶈繕涓嶇煡閬撴€庝箞瑙e喅锛屽彲鑳芥槸django鐨凜SS鏈夊啿绐併€�