【问题标题】:Django CkEditor Load Custom Plugin - Not WorkingDjango CkEditor 加载自定义插件 - 不工作
【发布时间】: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


【解决方案1】:

问题已解决 我不小心命名为plugin.jsplugins.js(和s)。

【讨论】:

    猜你喜欢
    • 2017-12-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-12-29
    • 2015-09-12
    • 2010-11-11
    • 1970-01-01
    • 2015-01-12
    相关资源
    最近更新 更多