DjangoUeditor icon indicating copy to clipboard operation
DjangoUeditor copied to clipboard

在model中使用的问题

Open YFZX opened this issue 9 years ago • 1 comments

求助: from DjangoUeditor.models import UEditorField class Blog(models.Model): Name=models.CharField(,max_length=100,blank=True) Content=UEditorField(u'内容 ',width=600, height=300, toolbars="full", imagePath="", filePath="", upload_settings={"imageMaxSize":1204000}, settings={},command=None,event_handler=myEventHander(),blank=True) 第一个是Name=models.CharField(,max_length=100,blank=True)这里括号内的第一个逗号语法报错 删了以后就好了 第二个是command=None,event_handler=myEventHander()中的myEventHander()没有定义

YFZX avatar Oct 20 '15 03:10 YFZX

myEventHander需要你自己定义

zhangfisher avatar Oct 29 '15 14:10 zhangfisher