1
我使用FeinCMS(https://github.com/feincms/feincms/)和django-ckeditor提供文件上传支持(https://github.com/shaunsephton/django-ckeditor) 。Django-ckeditor内联错误
我创建了一个FeinCMS内容类型RichTextField:
class RichContent(models.Model):
text = RichTextField(_('text'))
class Meta:
abstract = True
verbose_name = _('Rich Text')
verbose_name_plural =_('Rich Text')
def render(self, **kwargs):
context_instance = kwargs.get('context_instance')
return render_to_string('content/page/rich_content.html', {
'page': self,
}, context_instance=context_instance)
但在Django管理,当我选择 '格式文本',并按下 '开始',得到这个错误在Firebug控制台:
uncaught exception: [CKEDITOR.editor] The instance "id_richcontent_set-__prefix__-text" already exists.
ckeditor中的textarea不可编辑。