Skip to content

🐛 实体详细信息(Vditor编辑器)里粘贴图片软件会卡死 #413

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3217333857 opened this issue Apr 21, 2025 · 4 comments

Comments

@3217333857
Copy link

发生了什么?

如题,粘贴图片会卡死,command+q也无法退出软件,只要再次打开那个节点的md编辑器就又会卡死

系统版本

macOS

软件的版本

Mac air m1 sequoia 15.4.1

附件

No response

@hulyhulyhuly
Copy link
Contributor

hulyhulyhuly commented Apr 21, 2025

PG version: dev-0415
M1 Pro Sequoia 15.4

oh... 试出来了
可能是图片转换成base64太胖?
看了一下图片在节点里的维持base64格式
在画布上有另存一份图档在这个专案的资料夹内

15KB JEPG
64KB PNG
图片插入, 开启节点都有明显卡顿
但很快就恢复

Image

243KB JEPG
卡到爆要等非常久
但只要願意等, 能恢復正常


WinOS也一樣的問題

@Littlefean
Copy link
Contributor

其实我自己都没想到有这个功能,也没想到这个vditor里还能直接粘贴图片。😨
因为我在使用的时候粘贴图片一般都是直接以节点的形式摆在舞台上摆来摆去。

@Littlefean
Copy link
Contributor

“实体详细信息” 的全部内容,会存在json文件的节点的 “details” 字段里,整个markdown格式的内容会被字符串化作为这个字段值。
目前有两种可能:

  1. vditor编辑器粘贴图片时,转码base64字符串并渲染的时候太卡了
  2. markdown格式的内容被字符串化后,json文件体积骤增,导致读取变得卡顿

@Littlefean Littlefean changed the title 🐛 ...Mac的md编辑器里粘贴图片软件会卡死 🐛 实体详细信息(Vditor编辑器)里粘贴图片软件会卡死 Apr 25, 2025
@Littlefean
Copy link
Contributor

目前的实体详细信息编辑还不是特别成熟,感觉应该先从进入、切换、多开交互上开始优化

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 待讨论
Development

No branches or pull requests

3 participants