已开启
custom-image 增加 allowInvalid 用于支持特定场景需要返回原始url #1
摔倒的红烧肉创建于 2025年8月15日
custom-image 增加 allowInvalid 用于支持特定场景需要返回原始url #1
已开启
摔倒的红烧肉创建于 2025年8月15日
摔倒的红烧肉
摔倒的红烧肉
2025年8月15日

PR

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

What is the current behavior?

如QQ图文消息粘贴到编辑器时,本地文件路径被过滤成 //:0 无法满足 非web浏览器运行环境下的其他功能支持

Issue Number: 1

What is the new behavior?

新增 allowInvalid 参数 来实现 不满足条件是 是否返回原路径

Does this PR introduce a breaking change?

Other information

读取本地文件在web 浏览器中受权限现在不被支持,但是在一些特定环境下 被支持 如 electron 可根据文件路径读取文件

likedislike
合并受阻
Kagol
Kagol成员2025年10月17日进行代码检视2
packages/projects/src/views/yuque/YuQue.vue
已过期
@@ -46,2 +46,4 @@
4646 theme: 'snow',
4747 modules: {
48+ 'image': {
49+ allowInvalid: true,
Kagol
Kagol2025年10月17日评论:
改动建议
49
+ allowInvalidUrl: true,
应用建议
likedislike
System
系统消息系统
2025年10月19日 评论:

changed this line on 2ef34ef8 view diff detail

Kagol
Kagol成员2025年10月17日进行代码检视2
packages/projects/src/views/yuque/YuQue.vue
已过期
@@ -98,3 +104,1 @@
98- href="https://opentiny.github.io/tiny-editor/"
99- target="_blank"
100- >测试文档</a>
104+ 这是一篇<a class="ql-normal-link" href="https://opentiny.github.io/tiny-editor/" target="_blank">测试文档</a>
Kagol
Kagol2025年10月17日评论:

尽量不要修改原来的代码格式哈,HTML 标签属性换行显示更加直观

likedislike
System
系统消息系统
2025年10月19日 评论:

changed this line on 2ef34ef8 view diff detail

Kagol
Kagol成员
2025年10月17日 评论:

@LinLiang 麻烦看下检视意见哈

likedislike
摔倒的红烧肉摔倒的红烧肉
2025年10月19日 推送  1 个提交:2ef34ef8-根据pr修复意见进行修改
摔倒的红烧肉摔倒的红烧肉
2025年10月19日 修改了pull request 的描述
摔倒的红烧肉摔倒的红烧肉
2025年10月19日 修改了pull request 的描述
Kagol
Kagol成员
2025年10月20日 评论:

GitCode 好像合入不了 PR,如果你不方便提交到 GitHub 的话,我来提交到 GitHub 吧
image.png

likedislike