更新了 Django Ckeditor 的 Youtube 插件

Fer*_*ves 3 youtube django ckeditor python-2.7 django-ckeditor

我正在使用 Django-ckeditor-updated 来构建一个 CMS,我正在尝试使用 Ckeditor youtube 插件(http://ckeditor.com/addon/youtube),但它没有出现在工具栏中。

我已将插件下载到 ckeditor plugins 文件夹,然后编辑CKEDITOR_CONFIGSinsettings.py以显示 youtube 插件,但它不起作用。有任何想法吗?

CKEDITOR_CONFIGS = {
'default': {
    'toolbar': 'CMS',
    'toolbar_CMS': [
        {
            'name': 'basicstyles',
            'groups': ['basicstyles', 'cleanup'],
            'items': ['Bold', 'Italic', 'Underline', '-', 'RemoveFormat']
        },
        {
            'name': 'paragraph',
            'groups': ['list', 'indent', 'blocks'],
            'items': ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote']
        },
        {
            'name': 'links',
            'items': ['Link', 'Unlink']
        },
        {
            'name': 'insert',
            'items': ['Image', 'HorizontalRule', 'Table', 'Iframe', ]
        },
        {
            'name': 'colors',
            'items': ['TextColor', 'BGColor']
        },
        {
            'name': 'youtube',
            'items': ['youtube',]
        }
    ],
    'height': 400,
    'width': '100%',
    'allowedContent': True,
    'uiColor': '#f0f0f0',
    'extraPlugins': 'link,iframe,colorbutton,autogrow,youtube',
    'autoGrow_maxHeight': 800,
    'autoGrow_minHeight': 400,
    'removePlugins': 'resize',
    'removeButtons': None,
    'contentsCss': ['/static/css/news_show.css', '/static/css/cke.css'],
},
}
Run Code Online (Sandbox Code Playgroud)

Fer*_*ves 5

这只是一个愚蠢的错误。

    {
        'name': 'youtube',
        'items': ['Youtube',]
    }
Run Code Online (Sandbox Code Playgroud)

youtube 项目中的 y 必须大写。