我在我的Rails应用程序中使用ckeditor gem . 我正在尝试将codesnippet插件添加到我的CKEditor中 .
我已经下载了zip文件并将其解压缩到 app/assets/javascripts/ckeditor/plugins
并添加了这个:
config.extraPlugins = 'codesnippet';
到 config.js
文件 .
但是我收到了这个错误:
File not found: /assets/ckeditor/plugins/widget/plugin.js?t=G6DE
Error: [CKEDITOR.resourceManager.load] Resource name "widget" was not found at "/assets/ckeditor/plugins/widget/plugin.js?t=G6DE".
/assets/ckeditor/ckeditor.self.js?body=1:236
1 回答
它在download page上声明存在包含Widget和Dialog插件的依赖项 .
我想你已经Dialog了 . 您需要下载Widget插件,将其包含在插件中,并将其添加到您的extraplugins设置中 . 即
这应该解决它 .
Note :widet插件还有3个依赖项 . Line Utilities,Clipboard和Widget Selection . 确保已将这些插件包含在plugins文件夹中,并将其添加到extraplugins配置中 .
一切都会好的;)