mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-21 10:27:44 +08:00
Fix:修复富文本模式下节点内容存在 时导出为图片出错的问题
This commit is contained in:
parent
0d4cbc7344
commit
879de57b49
@ -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'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user