Django CkEditor加载自定义插件 - 不工作

问题描述 投票:0回答:1

我正在为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
1个回答
0
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.