问题描述
我正在使用。现在,我需要添加一个新插件。
我已经读过,我应该下载并将其解压缩到插件中文件夹:
I am using django-ckeditor. And now I need to add one new plugin. ThisI have read that, I should download and extract it into "plugins" folder :
但是我的项目中没有任何 plugins文件夹。有一个,但是它位于 Libsite-packages-ckeditor-static-ckeditor-ckeditor-plugin
中。
But I have not any "plugins" folder in my project. There is one, but it is located in Lib\site-packages\ckeditor\static\ckeditor\ckeditor\plugin
.
因此,如果我在此处添加它,则将其部署到生产环境或另一台计算机上时将不可用...
So, if I add it there - it will be unavailable when I will deploy it in production or on another computer...
我应该怎么做?
推荐答案
来自
因此,将插件代码放入您的项目的静态
文件夹,位于 static / ckeditor / ckeditor / plugins
中,它应该可以正常工作。
So, put the plugin code in the static
folder of your project, in static/ckeditor/ckeditor/plugins
and it should work.
这篇关于如何将插件安装到CkEditor,Django中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!