https下百度ueditor地图不能使用的问题

阅读次数: 8,028

  • A+
所属分类:建站

问题描述:网站采用的是https传输协议,ueditor使用地图时报错,导致不能插入地图,如图所示:https下百度ueditor地图不能使用的问题
解决方案:使用新版本的百度地图组件,将百度地图换成https协议,方法如下:
1、修改百度地图js的引用方式,ueditor\dialogs下的map.html文件
原来是:
修改成:
这里的ak值是我在网上随便找的一个
https下百度ueditor地图不能使用的问题
2、修改1.1到2.0升级的部分api:
1)修改ueditor\dialogs下的map.html文件中,如图
https下百度ueditor地图不能使用的问题https下百度ueditor地图不能使用的问题
2)修改ueditor\dialogs下的show.html文件中,如图
修改js引用方式

https下百度ueditor地图不能使用的问题https下百度ueditor地图不能使用的问题

然后就可以了

https下百度ueditor地图不能使用的问题

  • 我的微信
  • 这是我的微信扫一扫
  • weinxin
  • 我的微信公众号
  • 我的微信公众号扫一扫
  • weinxin

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: