Skip to content

EditableAPI

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

activeAnnotations: () => PortableTextObject[]

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

PortableTextObject[]


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

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

TSchemaType extends object

TSchemaType

undefined | AddedAnnotationPaths


blur: () => void

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

void


delete: (selection, options?) => void

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

EditorSelection

EditableAPIDeleteOptions

void


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

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

Path

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


findDOMNode: (element) => undefined | Node

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

PortableTextSpan | PortableTextObject | PortableTextTextBlock<PortableTextSpan | PortableTextObject>

undefined | Node


focus: () => void

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

void


focusBlock: () => undefined | PortableTextBlock

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

undefined | PortableTextBlock


focusChild: () => undefined | PortableTextChild

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

undefined | PortableTextChild


getFragment: () => undefined | PortableTextBlock[]

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

undefined | PortableTextBlock[]


getSelection: () => EditorSelection

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

EditorSelection


getValue: () => undefined | PortableTextBlock[]

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

undefined | PortableTextBlock[]


hasBlockStyle: (style) => boolean

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

string

boolean


hasListStyle: (listStyle) => boolean

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

string

boolean


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

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

TSchemaType extends object

TSchemaType

Path


insertBreak: () => void

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

void


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

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

TSchemaType extends object

TSchemaType

Path


isAnnotationActive: (annotationType) => boolean

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

string

boolean


isCollapsedSelection: () => boolean

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

boolean


isExpandedSelection: () => boolean

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

boolean


isMarkActive: (mark) => boolean

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

string

boolean


isSelectionsOverlapping: (selectionA, selectionB) => boolean

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

EditorSelection

EditorSelection

boolean


isVoid: (element) => boolean

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

PortableTextSpan | PortableTextObject | PortableTextTextBlock<PortableTextSpan | PortableTextObject>

boolean


marks: () => string[]

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

string[]


redo: () => void

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

void


removeAnnotation: <TSchemaType>(type) => void

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

TSchemaType extends object

TSchemaType

void


select: (selection) => void

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

EditorSelection

void


toggleBlockStyle: (blockStyle) => void

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

string

void


toggleList: (listStyle) => void

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

string

void


toggleMark: (mark) => void

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

string

void


undo: () => void

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

void