Fix:修复富文本模式下节点内容存在 时导出为图片出错的问题

This commit is contained in:
wanglin2 2023-11-20 16:26:35 +08:00
parent 0d4cbc7344
commit 879de57b49

View File

@ -188,7 +188,6 @@ class Export {
*/
async png(name, transparent = false, checkRotate) {
let { node, str } = await this.getSvgData()
str = removeHTMLEntities(str)
// 如果开启了富文本则使用htmltocanvas转换为图片
if (this.mindMap.richText) {
// 覆盖html默认的样式
@ -208,6 +207,7 @@ class Export {
// )
// return imgDataUrl
}
str = removeHTMLEntities(str)
// 转换成blob数据
let blob = new Blob([str], {
type: 'image/svg+xml'