Q-b*_*art 3 javascript python django ckeditor django-ckeditor
我正在使用django-ckeditor。现在我需要添加一个新插件。这是 我读过的,我应该下载并将其解压缩到“插件”文件夹中:
将文件内容解压到 CKEditor 的“plugins”文件夹中。
但是我的项目中没有任何“插件”文件夹。有一个,但它位于Lib\site-packages\ckeditor\static\ckeditor\ckeditor\plugin.
所以,如果我在那里添加它 - 当我将它部署到生产环境或另一台计算机上时它将不可用......
我该怎么办?
感谢您的提问。我只是将html5audio插件添加到djnago-ckeditor. 完整路径为:
html5audio目录解压缩到/path/to/your/project/static/ckeditor/ckeditor/plugins/或/python/libs/ckeditor/static/ckeditor/ckeditor/plugins/包含所有内容。html5audio插件添加到您settings.py附近的其他CKEDITOR变量中:CKEDITOR_CONFIGS = {
'default': {
'toolbar': 'full',
'extraPlugins': ','.join(
[
'html5audio',
]
),
},
}
Run Code Online (Sandbox Code Playgroud)
4. 使用 ckeditor 小部件重新加载页面 :)。
| 归档时间: |
|
| 查看次数: |
4422 次 |
| 最近记录: |