fix: improve JSONContent type to allow pure JSON content
This commit is contained in:
@@ -88,7 +88,7 @@ export interface EditorOptions {
|
||||
export type HTMLContent = string
|
||||
|
||||
export type JSONContent = {
|
||||
type: string,
|
||||
type?: string,
|
||||
attrs?: Record<string, any>,
|
||||
content?: JSONContent[],
|
||||
marks?: {
|
||||
|
||||
Reference in New Issue
Block a user