Skip to content
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

🐛 [Bug]: 上传图片以html格式时缺失src #224

Open
stwflyfox opened this issue Feb 10, 2025 · 0 comments
Open

🐛 [Bug]: 上传图片以html格式时缺失src #224

stwflyfox opened this issue Feb 10, 2025 · 0 comments

Comments

@stwflyfox
Copy link

stwflyfox commented Feb 10, 2025

Version

@opentiny/[email protected]

Link to minimal reproduction

none

Step to reproduce

Image

上传图片后,以 delta 格式时取到编辑内容:
{"ops":[{"insert":{"image":{"src":"https://upload.91zd.cn:459/0023ad0a-8587-480f-a1fa-2d3b19c62ce3/开工大吉 _20250210131921057.jpg","hasExisted":"true","imageId":"img0"}}},{"insert":"\n"}]}

设置 :data-type="false" :data-upgrade="true" 以html格式时取到编辑内容, img 缺失了src:
<p><img data-image-id="img0" devui-editorx-image="true" style></p>

What is expected

No response

What is actually happening

No response

What is your project name

TinyVue

Any additional comments (optional)

No response

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

No branches or pull requests

1 participant