Python django的富文本编辑器

Python django的富文本编辑器,python,django,upload,open-source,rich-text-editor,Python,Django,Upload,Open Source,Rich Text Editor,我正在尝试为我的项目添加richtexteditor。 对Django中的开源richtexteditor有什么建议吗? 应包括图像上传、视频上传和文件上传选项 我使用django编辑器 要在项目中使用,请使用pip安装,并在settings.py上的isntalled_应用程序中添加“ckeditor”和“ckeditor_uploader” 要更好地工作,请在settings.py上添加以下内容: CKEDITOR_CONFIGS = { 'default': { '

我正在尝试为我的项目添加richtexteditor。 对Django中的开源richtexteditor有什么建议吗?
应包括图像上传、视频上传和文件上传选项

我使用django编辑器

要在项目中使用,请使用pip安装,并在settings.py上的isntalled_应用程序中添加“ckeditor”和“ckeditor_uploader”

要更好地工作,请在settings.py上添加以下内容:

CKEDITOR_CONFIGS = {
    'default': {
        'toolbar': 'Custom',
        'width': '100%',
        'tabSpaces': 4,
        'toolbar_Custom': [
            ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat'],
            ['TextColor', 'BGColor'],
            ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', 'Blockquote', 'BidiLtr', 'BidiRtl'],
            ['Link', 'Unlink', 'Anchor'],
            ['Source'],
            ['Styles', 'Format', 'Font', 'FontSize'],
            ['Youtube', 'Image', 'Flash', 'Table', 'HorizontalRule', 'Smiley', 'SpecialChar', 'PageBreak', 'Iframe'],
        ]
    }
}

CKEDITOR_BASEPATH = "{}/ckeditor/ckeditor".format(STATIC_URL)
并且,在与settings.py相同级别的主URL.py中,添加以下内容:

path('ckeditor/', include('ckeditor_uploader.urls')),

请参阅有关ckeditor的更多信息。

我使用django ckeditor

要在项目中使用,请使用pip安装,并在settings.py上的isntalled_应用程序中添加“ckeditor”和“ckeditor_uploader”

要更好地工作,请在settings.py上添加以下内容:

CKEDITOR_CONFIGS = {
    'default': {
        'toolbar': 'Custom',
        'width': '100%',
        'tabSpaces': 4,
        'toolbar_Custom': [
            ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat'],
            ['TextColor', 'BGColor'],
            ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', 'Blockquote', 'BidiLtr', 'BidiRtl'],
            ['Link', 'Unlink', 'Anchor'],
            ['Source'],
            ['Styles', 'Format', 'Font', 'FontSize'],
            ['Youtube', 'Image', 'Flash', 'Table', 'HorizontalRule', 'Smiley', 'SpecialChar', 'PageBreak', 'Iframe'],
        ]
    }
}

CKEDITOR_BASEPATH = "{}/ckeditor/ckeditor".format(STATIC_URL)
并且,在与settings.py相同级别的主URL.py中,添加以下内容:

path('ckeditor/', include('ckeditor_uploader.urls')),
请参阅有关ckeditor的更多信息