使用CKeditor的CDN版本时尝试加载Emoji插件... CORS问题

时间:2018-08-28 16:01:33

标签: javascript ckeditor ckeditor4.x

我正在通过CDN以及自定义配置加载ckeditor的最新版本(4.10.0):

<script type="text/javascript" src="//cdn.ckeditor.com/full-all/ckeditor.js"></script>
<script type="text/javascript" src="/path/to/loadCustomConfig.js"></script>

loadCustomConfig.js中的

CKEDITOR.config.extraPlugins='mentions,emoji';

我得到了

  

无法加载https://cdn.ckeditor.com/4.10.0/full-all/plugins/emoji/emoji.json?t=I63C:所请求的资源上不存在“ Access-Control-Allow-Origin”标头。因此,不允许访问来源“ https://”。

当我从额外的插件配置中删除表情符号时,一切正常。我什至可以使用CKEDITOR.config.mentions = [];

设置提及

起初我以为我需要设置依赖项,但是“提及”起作用了...

有什么想法吗?这是当前的错误还是我只是缺少一些东西?

1 个答案:

答案 0 :(得分:1)

正如@dandavis所提到的,这是CDN方面的问题,并且在#2364之前已得到解决。