[Django]-Youtube Plugin for Django Ckeditor Updated

5👍

It was just a silly mistake.

    {
        'name': 'youtube',
        'items': ['Youtube',]
    }

the y in youtube item must be in uppercase.

0👍

If you do not want to declare into settings.py file then you can also add it to models.py file.See below code:-

class Post(models.Model): 

    content = RichTextUploadingField(blank=True, null=True, extra_plugins= 
    ['codesnippet','youtube',], external_plugin_resources= 
    [('youtube','/static/blog/ckeditor_plugin/youtube/youtube/','plugin.js')],)

When you download the zip file of youtube plugin from http://ckeditor.com/addon/youtube you have to unzip if in your static folder of your project.And add this path to external_plugin_resources as shown in above code.

👤Apurv

Leave a comment