ckeditor-未捕获的TypeError:无法读取null的属性“ icons” [英] ckeditor - Uncaught TypeError: Cannot read property 'icons' of null

查看:482
本文介绍了ckeditor-未捕获的TypeError:无法读取null的属性“ icons”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首次尝试使用ckeditor时。 ckeditor可以工作,但是当我尝试添加imageupload和uploadloadwidget插件时,出现错误:
未捕获的TypeError:无法读取null的'icons'属性

When trying to use ckeditor for the first time. ckeditor works, but when I try to add imageupload and uploadloadwidget plugins then I get the error: Uncaught TypeError: Cannot read property 'icons' of null

有人对导致它的原因有任何想法吗?

Does anyone have any ideas as to what might be causing it?

<script src="//cdn.ckeditor.com/4.5.6/basic/ckeditor.js"></script>

<script>
    $(document).ready(function () {
        CKEDITOR.plugins.addExternal('imageupload', '/ckeditor/plugins/imageupload/');
        CKEDITOR.plugins.addExternal('uploadwidget', '/ckeditor/plugins/uploadwidget/');
        CKEDITOR.replace('htmleditor', {
            htmlEncodeOutput: true,
            extraPlugins: 'imageupload,uploadwidget'

        });
    });
</script>

推荐答案

对于原始海报来说为时已晚,但我遇到了同样的问题,结果发现我没有包含UploadImage所依赖的UploadWidget插件。

Too late for the original poster, but I had this same problem and it turned out that I hadn't included the UploadWidget pluging that UploadImage was dependent on.

这篇关于ckeditor-未捕获的TypeError:无法读取null的属性“ icons”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆