Skip to content

EditableAPI

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

activeAnnotations: () => PortableTextObject[]

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

PortableTextObject[]


addAnnotation: <TSchemaType>(type, value?) => undefined | { markDefPath: Path; markDefPaths: Path[]; spanPath: Path; }

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

TSchemaType extends object

TSchemaType

undefined | { markDefPath: Path; markDefPaths: Path[]; spanPath: Path; }


blur: () => void

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

void


delete: (selection, options?) => void

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

EditorSelection

EditableAPIDeleteOptions

void


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

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

Path

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


findDOMNode: (element) => undefined | Node

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

PortableTextSpan | PortableTextObject | PortableTextTextBlock<PortableTextSpan | PortableTextObject>

undefined | Node


focus: () => void

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

void


focusBlock: () => undefined | PortableTextBlock

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

undefined | PortableTextBlock


focusChild: () => undefined | PortableTextChild

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

undefined | PortableTextChild


getFragment: () => undefined | PortableTextBlock[]

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

undefined | PortableTextBlock[]


getSelection: () => EditorSelection

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

EditorSelection


getValue: () => undefined | PortableTextBlock[]

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

undefined | PortableTextBlock[]


hasBlockStyle: (style) => boolean

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

string

boolean


hasListStyle: (listStyle) => boolean

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

string

boolean


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

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

TSchemaType extends object

TSchemaType

Path


insertBreak: () => void

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

void


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

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

TSchemaType extends object

TSchemaType

Path


isAnnotationActive: (annotationType) => boolean

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

string

boolean


isCollapsedSelection: () => boolean

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

boolean


isExpandedSelection: () => boolean

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

boolean


isMarkActive: (mark) => boolean

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

string

boolean


isSelectionsOverlapping: (selectionA, selectionB) => boolean

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

EditorSelection

EditorSelection

boolean


isVoid: (element) => boolean

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

PortableTextSpan | PortableTextObject | PortableTextTextBlock<PortableTextSpan | PortableTextObject>

boolean


marks: () => string[]

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

string[]


redo: () => void

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

void


removeAnnotation: <TSchemaType>(type) => void

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

TSchemaType extends object

TSchemaType

void


select: (selection) => void

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

EditorSelection

void


toggleBlockStyle: (blockStyle) => void

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

string

void


toggleList: (listStyle) => void

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

string

void


toggleMark: (mark) => void

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

string

void


undo: () => void

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

void