mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-28 07:40:13 +08:00
fix: fix bug on paste when using code blocks
This commit is contained in:
parent
d3641b88e0
commit
d60fe350d1
@ -156,7 +156,7 @@ export const CodeBlock = Node.create<CodeBlockOptions>({
|
||||
const vscodeData = vscode
|
||||
? JSON.parse(vscode)
|
||||
: undefined
|
||||
const language = vscodeData.mode
|
||||
const language = vscodeData?.mode
|
||||
|
||||
if (!text || !language) {
|
||||
return false
|
||||
|
Loading…
Reference in New Issue
Block a user