Skip to content

EditableAPI

Defined in: packages/editor/src/types/editor.ts:53

activeAnnotations: () => PortableTextObject[]

Defined in: packages/editor/src/types/editor.ts:54

PortableTextObject[]


addAnnotation: <TSchemaType>(type, value?) => AddedAnnotationPaths | undefined

Defined in: packages/editor/src/types/editor.ts:56

TSchemaType extends object

TSchemaType

AddedAnnotationPaths | undefined


blur: () => void

Defined in: packages/editor/src/types/editor.ts:60

void


delete: (selection, options?) => void

Defined in: packages/editor/src/types/editor.ts:61

EditorSelection

EditableAPIDeleteOptions

void


findByPath: (path) => [PortableTextObject | PortableTextSpan | PortableTextTextBlock<PortableTextObject | PortableTextSpan> | undefined, Path | undefined]

Defined in: packages/editor/src/types/editor.ts:65

Path

[PortableTextObject | PortableTextSpan | PortableTextTextBlock<PortableTextObject | PortableTextSpan> | undefined, Path | undefined]


findDOMNode: (element) => Node | undefined

Defined in: packages/editor/src/types/editor.ts:68

PortableTextObject | PortableTextSpan | PortableTextTextBlock<PortableTextObject | PortableTextSpan>

Node | undefined


focus: () => void

Defined in: packages/editor/src/types/editor.ts:71

void


focusBlock: () => PortableTextBlock | undefined

Defined in: packages/editor/src/types/editor.ts:72

PortableTextBlock | undefined


focusChild: () => PortableTextChild | undefined

Defined in: packages/editor/src/types/editor.ts:73

PortableTextChild | undefined


getFragment: () => PortableTextBlock[] | undefined

Defined in: packages/editor/src/types/editor.ts:75

PortableTextBlock[] | undefined


getSelection: () => EditorSelection

Defined in: packages/editor/src/types/editor.ts:74

EditorSelection


getValue: () => PortableTextBlock[] | undefined

Defined in: packages/editor/src/types/editor.ts:76

PortableTextBlock[] | undefined


hasBlockStyle: (style) => boolean

Defined in: packages/editor/src/types/editor.ts:77

string

boolean


hasListStyle: (listStyle) => boolean

Defined in: packages/editor/src/types/editor.ts:78

string

boolean


insertBlock: <TSchemaType>(type, value?) => Path

Defined in: packages/editor/src/types/editor.ts:79

TSchemaType extends object

TSchemaType

Path


insertBreak: () => void

Defined in: packages/editor/src/types/editor.ts:87

void


insertChild: <TSchemaType>(type, value?) => Path

Defined in: packages/editor/src/types/editor.ts:83

TSchemaType extends object

TSchemaType

Path


isAnnotationActive: (annotationType) => boolean

Defined in: packages/editor/src/types/editor.ts:55

string

boolean


isCollapsedSelection: () => boolean

Defined in: packages/editor/src/types/editor.ts:88

boolean


isExpandedSelection: () => boolean

Defined in: packages/editor/src/types/editor.ts:89

boolean


isMarkActive: (mark) => boolean

Defined in: packages/editor/src/types/editor.ts:90

string

boolean


isSelectionsOverlapping: (selectionA, selectionB) => boolean

Defined in: packages/editor/src/types/editor.ts:91

EditorSelection

EditorSelection

boolean


isVoid: (element) => boolean

Defined in: packages/editor/src/types/editor.ts:95

PortableTextObject | PortableTextSpan | PortableTextTextBlock<PortableTextObject | PortableTextSpan>

boolean


marks: () => string[]

Defined in: packages/editor/src/types/editor.ts:96

string[]


redo: () => void

Defined in: packages/editor/src/types/editor.ts:97

void


removeAnnotation: <TSchemaType>(type) => void

Defined in: packages/editor/src/types/editor.ts:98

TSchemaType extends object

TSchemaType

void


select: (selection) => void

Defined in: packages/editor/src/types/editor.ts:101

EditorSelection

void


toggleBlockStyle: (blockStyle) => void

Defined in: packages/editor/src/types/editor.ts:102

string

void


toggleList: (listStyle) => void

Defined in: packages/editor/src/types/editor.ts:103

string

void


toggleMark: (mark) => void

Defined in: packages/editor/src/types/editor.ts:104

string

void


undo: () => void

Defined in: packages/editor/src/types/editor.ts:105

void