编辑模式下,输入html标签,无法解析成普通的字符串,显示空白 #889
kang-bao-yan
started this conversation in
General
Replies: 1 comment 3 replies
-
不能既渲染img标签,又不渲染其他的标签。要把input显示成字符串,考虑用行内代码的方式 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
因为经测试我们发现控件 无法将 jpg、bmp、svg 等格式的base64 字符串自动解析为 图片(jpeg、png等可以正常解析),所以我在main.ts中添加了下面的自定义规则:
结果导致了输入的html标签文本,无法解析成普通的字符串,显示空白,例如:

请问各位大神,我要如何改进代码,才能兼顾两者,或者插件能否改进下实现兼容jpg、bmp、svg 等格式的base64 字符串自动解析为 图片?我使用的5.7.0版本
Beta Was this translation helpful? Give feedback.
All reactions