tiny-editor icon indicating copy to clipboard operation
tiny-editor copied to clipboard

🐛 [Bug]: 设置不带协议的超链接,访问出错

Open kagol opened this issue 1 year ago • 1 comments

Version

latest

Link to minimal reproduction

复现链接:https://opentiny.github.io/fluent-editor/docs/basic-usage

复现步骤:

  1. 选择“Hello”文本
  2. 点击工具栏的超链接图标
  3. 输入不带协议的URL:opentiny.design
  4. 无法正常访问这个超链接,变成了:https://opentiny.github.io/fluent-editor/docs/opentiny.design,期望访问:https://opentiny.design

image

Step to reproduce

同上

What is expected

No response

What is actually happening

No response

What is your project name

Wiki

Any additional comments (optional)

No response

kagol avatar Oct 10 '24 06:10 kagol

这是a标签的默认行为,会自动以当前的url路径为相对路径进行跳转,要跳转其他网站需要带上协议(quill也是这样)

你的意思是在未手动输入协议的情况下需要自动加上https吗?

zzxming avatar Oct 10 '24 09:10 zzxming

这是a标签的默认行为,会自动以当前的url路径为相对路径进行跳转,要跳转其他网站需要带上协议(quill也是这样)

你的意思是在未手动输入协议的情况下需要自动加上https吗?

嗯嗯,我觉得可以优化下这块的体验,未手动输入协议的情况下自动加上 https,我看语雀是支持的

kagol avatar Oct 22 '24 09:10 kagol