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 HTMLContent = string
|
||||||
|
|
||||||
export type JSONContent = {
|
export type JSONContent = {
|
||||||
type: string,
|
type?: string,
|
||||||
attrs?: Record<string, any>,
|
attrs?: Record<string, any>,
|
||||||
content?: JSONContent[],
|
content?: JSONContent[],
|
||||||
marks?: {
|
marks?: {
|
||||||
|
|||||||
Reference in New Issue
Block a user