feat: 🚀 优化编辑器自定义图片和视频命名

This commit is contained in:
2025-07-22 16:13:26 +08:00
parent 2347bc6f0c
commit d79c3f8191
5 changed files with 97 additions and 118 deletions

View File

@@ -57,7 +57,7 @@ class Video extends BlockEmbed {
return `<a href="${video}">${video}</a>`;
}
}
Video.blotName = "video"; // 这里不用改不用iframe直接替换掉原来如果需要也可以保留原来的这里用个新的blot
Video.blotName = "customVideo"; // 这里不用改不用iframe直接替换掉原来如果需要也可以保留原来的这里用个新的blot
Video.className = "ql-video"; // 可添加样式,看实际使用需要
Video.tagName = "video"; // 用video标签替换iframe