Fix:修复富文本插件粘贴文本时没有去除默认样式的问题
This commit is contained in:
parent
0a6c8fb61c
commit
6bfac34368
@ -13,7 +13,7 @@ import {
|
|||||||
nodeRichTextToTextWithWrap
|
nodeRichTextToTextWithWrap
|
||||||
} from '../utils'
|
} from '../utils'
|
||||||
import { CONSTANTS } from '../constants/constant'
|
import { CONSTANTS } from '../constants/constant'
|
||||||
import Node from '../core/render/node/Node'
|
import MindMapNode from '../core/render/node/Node'
|
||||||
|
|
||||||
let extended = false
|
let extended = false
|
||||||
|
|
||||||
@ -691,7 +691,7 @@ class RichText {
|
|||||||
'textDecoration',
|
'textDecoration',
|
||||||
'color'
|
'color'
|
||||||
]
|
]
|
||||||
const nodeData = node instanceof Node ? node.getData() : node
|
const nodeData = node instanceof MindMapNode ? node.getData() : node
|
||||||
for (let i = 0; i < list.length; i++) {
|
for (let i = 0; i < list.length; i++) {
|
||||||
if (nodeData[list[i]] !== undefined) {
|
if (nodeData[list[i]] !== undefined) {
|
||||||
return true
|
return true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user