fix: fix bug on paste when using code blocks
This commit is contained in:
@@ -156,7 +156,7 @@ export const CodeBlock = Node.create<CodeBlockOptions>({
|
|||||||
const vscodeData = vscode
|
const vscodeData = vscode
|
||||||
? JSON.parse(vscode)
|
? JSON.parse(vscode)
|
||||||
: undefined
|
: undefined
|
||||||
const language = vscodeData.mode
|
const language = vscodeData?.mode
|
||||||
|
|
||||||
if (!text || !language) {
|
if (!text || !language) {
|
||||||
return false
|
return false
|
||||||
|
|||||||
Reference in New Issue
Block a user