【发布时间】:2019-08-07 14:55:48
【问题描述】:
我正在为 Django 创建一个自定义 CkEditor。我关注https://ckeditor.com/docs/ckeditor4/latest/guide/plugin_sdk_sample_1.html 并尝试加载插件,但它没有。当我将其他插件放入我的静态文件夹 (lib/static/ckeditor/ckeditor/plugins/MYPLUGIN) 并尝试加载它们时,它可以工作。
也许有人可以帮助我。
控制台错误:
ckeditor.js:98 GET http://127.0.0.1:8000/lib/static/ckeditor/ckeditor/plugins/utils/plugin.js?t=I3I8 net::ERR_ABORTED 404 (Not Found)
ckeditor.js:255 Uncaught Error: [CKEDITOR.resourceManager.load] Resource name "utils" was not found at "http://127.0.0.1:8000/lib/static/ckeditor/ckeditor/plugins/utils/plugin.js?t=I3I8".
at CKEDITOR.resourceManager.<anonymous> (ckeditor.js:255)
at e (ckeditor.js:250)
at Array.z (ckeditor.js:250)
at y (ckeditor.js:250)
at ckeditor.js:251
【问题讨论】:
-
您说将插件放在插件文件夹中时它可以工作。那么有什么问题呢?
-
我的意思是当我将其他插件放在插件文件夹中时,它们可以工作。当我把它放在我的插件文件夹中时,我的插件不起作用。
标签: django ckeditor ckeditor4.x django-ckeditor