angularjs - 错误:在 Angularjs 中加载定义时 [CKEDITOR.dialog.openDialog] 对话框图像失败
问题描述
仅在生产中,当我尝试在 CKEditor 中插入图像时出现错误:
[CKEDITOR.dialog.openDialog] 加载定义时对话框图像失败
当我尝试添加表格时,我得到:
[CKEDITOR.dialog.openDialog] 加载定义时对话框表失败。
编辑器的其他选项正常工作,bower.json 中的版本是:"ckeditor": "#full/4.5.4",
我的工具栏配置是:
$ckEditorProvider.setDefaults({
toolbar: [
{
name: 'editing',
items: ['Find', 'Replace', '-', 'SelectAll', '-', 'Scayt', '-']
},
{
name: 'insert',
items: ['Image','Table']
},
'/',
{
name: 'styles',
items: ['Bold', 'Italic', 'Underline', 'Styles', 'Format', 'Font', 'FontSize']
}
]
});
CKEDITOR.basePath = location.href.substr(0, location.href.indexOf(location.hash)) + 'bower_components/ckeditor/';
CKEDITOR.plugins.basePath = location.href.substr(0, location.href.indexOf(location.hash)) + 'bower_components/ckeditor/plugins';
}
有谁知道为什么会这样?
解决方案
推荐阅读
- php - 在多种日期范围之间搜索?
- html - 如何使用 Flex 使图像居中?
- javafx - 如何在 FXMLDocumentController 中与我的画布交互
- mysql - 在 wordpress 中使用 wpdb 查询没有结果
- javascript - 如何使用数组(vanilla JS)创建 HTML 表格?
- c# - 在 WPF App 中根据用户名显示用户的 SQL 信息
- javascript - 特定字符的 TypeScript 类型字符串
- java - 在 Java 中创建对象时从孩子的类属性设置类属性
- python - 无法使用 Oauth2.0 对 LinkedIn Python API 客户端进行身份验证
- reactjs - ("node_modules/next/types/index")' 没有兼容的调用签名