ueditor添加锚点链接#abc会自动加上http://的问题
问题描述:在uEditor中添加了锚点之后,添加a跳转链接的时候,如上图,链接地址为#abc的时候,确认之后uEditor会自动给我加上http://导致链接地址变成http://#abc这样就不能正确链接到相应的锚点abc了。
解决方案:
修改ueditor/dialogs/link/link.html 链接窗口文件第75行
if(!hrefStartWith(href,["http","/","ftp://"])) {
href = "http://" + href;
}
改为
if(!hrefStartWith(href,["http","/","ftp://","#"])) {
href = "http://" + href;
}
阅读 8.1k
5 声望
0 粉丝
0 条评论
得票最新