我正在为 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