From ce7f52a8f0c278ef39b25010950dd734bebd679b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Wed, 3 Nov 2021 21:11:24 +0100 Subject: [PATCH] fix: improve JSONContent type to allow pure JSON content --- packages/core/src/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/types.ts b/packages/core/src/types.ts index 9691c014..2071e61e 100644 --- a/packages/core/src/types.ts +++ b/packages/core/src/types.ts @@ -88,7 +88,7 @@ export interface EditorOptions { export type HTMLContent = string export type JSONContent = { - type: string, + type?: string, attrs?: Record, content?: JSONContent[], marks?: {