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不可編輯。