-
Notifications
You must be signed in to change notification settings - Fork 918
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
[Question] Electron环境下无法渲染本地图片 #737
Labels
Comments
jiawulin001
added a commit
to jiawulin001/mavonEditor
that referenced
this issue
Dec 4, 2021
这个问题是因为XSS防御过滤掉了高危属性,在新版本发布前,你可以通过 <mavon-editor :xssOptions="false"></mavon-editor> This issue is due to the XSS filtering out high-risk attributes. |
非常感谢各位开发者,我的问题已经解决 Thanks very much to all the developers. |
ygj6
added a commit
that referenced
this issue
Dec 4, 2021
* fix: image cannot be previewed,issue #737 * fix test * Update src/lib/core/rules.js Co-authored-by: ygj6 <7699524+ygj6@users.noreply.github.com> Co-authored-by: ygj6 <7699524+ygj6@users.noreply.github.com>
langren1353
pushed a commit
to langren1353/mavonEditor
that referenced
this issue
Aug 1, 2022
* fix: image cannot be previewed,issue hinesboy#737 * fix test * Update src/lib/core/rules.js Co-authored-by: ygj6 <7699524+ygj6@users.noreply.github.com> Co-authored-by: ygj6 <7699524+ygj6@users.noreply.github.com> (cherry picked from commit 9933119) # Conflicts: # src/mavon-editor.vue
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
依赖版本
问题描述
您好,我在一个 Electron 项目中引入了 Mavon-editor ,但是在上传图片的功能中遇到了一些问题。
在线的图片链接能够被成功解析:
但是使用本地图片上传时,
d_render
无法正确渲染图片:此处通过
imgAdd
回调得到的imgfile
是正确的:直接在 Markdown 文本里写上本地文件的路径和 Base64 也没有效果
也尝试过直接书写 html 标签,但是也无法解析:
请问有什么解决方案吗?
因为这个项目是自己想练练手,做一个本地的 Markdown 编辑器看看的,因此如果有可能的话,尽量不想使用将本地图片上传至服务器的解决方案。
The text was updated successfully, but these errors were encountered: