Django-ckeditor inline error

Posted by ad3w on Stack Overflow See other posts from Stack Overflow or by ad3w
Published on 2012-09-16T18:06:39Z Indexed on 2012/12/15 23:04 UTC
Read the original article Hit count: 373

Filed under:
|
|
|

I'm using FeinCMS (https://github.com/feincms/feincms/) and django-ckeditor with file upload support (https://github.com/shaunsephton/django-ckeditor).

I create a FeinCMS content type for 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)

But in Django admin, when i select 'Rich Text' and press 'Go', get this error in firebug console:

uncaught exception: [CKEDITOR.editor] The instance "id_richcontent_set-__prefix__-text" already exists.

And textarea in ckeditor do not editable.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about django