错误:[CKEDITOR.dialog.openDialog]在Angularjs中加载定义时对话框图像失败

错误:[CKEDITOR.dialog.openDialog]在Angularjs中加载定义时对话框图像失败,angularjs,ckeditor,Angularjs,Ckeditor,仅在生产中,当我尝试在CKEditor中插入图像时,出现错误: [CKEDITOR.dialog.openDialog]加载定义时对话框图像失败 当我尝试添加表时,我得到: [CKEDITOR.dialog.openDialog]加载定义时对话框表失败 编辑器的其他选项工作正常,bower.json中的版本为:“ckeditor”:“#full/4.5.4”, 我的工具栏配置为: $ckEditorProvider.setDefaults({ toolbar: [

仅在生产中,当我尝试在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';
}
有人知道为什么会这样吗