mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
fix: 忽略文本框内粘贴的 img 和 pre 标签
This commit is contained in:
parent
d46edf9df3
commit
fdcffb3207
@ -96,7 +96,15 @@ const paragraph: NodeSpec = {
|
|||||||
|
|
||||||
return { align, indent }
|
return { align, indent }
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
{
|
||||||
|
tag: 'img',
|
||||||
|
ignore: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
tag: 'pre',
|
||||||
|
skip: true,
|
||||||
|
},
|
||||||
],
|
],
|
||||||
toDOM: (node: Node) => {
|
toDOM: (node: Node) => {
|
||||||
const { align, indent } = node.attrs
|
const { align, indent } = node.attrs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user