0

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

1 回答 1

0

问题解决了 ,我不小心命名为plugin.js plugins.js(with s)。

于 2019-03-17T18:26:01.317 回答