@univerjs/docs-ui v0.5.0-beta.1 • Docs


Interface: IEditorService

Deprecated

Properties

PropertyTypeDefined in
blur$Observable<unknown>submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:103
closeRangePrompt$Observable<unknown>submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:97
focus$Observable<ISuccinctDocRangeParam>submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:109
focusStyle$Observable<Nullable<string>>submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:138
inputFormula$Observable<IEditorInputFormulaParam>submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:62
resize$Observable<string>submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:69
setValue$Observable<IEditorSetValueParam>submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:115
singleSelection$Observable<boolean>submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:179
valueChange$Observable<Readonly<Editor>>submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:116

Methods

blur()

blur(): void

Returns

void

Deprecated

Defined in

submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:107


changeSpreadsheetFocusState()

changeSpreadsheetFocusState(state): void

Parameters

ParameterType
stateboolean

Returns

void

Deprecated

Defined in

submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:167


checkValueLegality()

checkValueLegality(editorId): boolean

Parameters

ParameterType
editorIdstring

Returns

boolean

Deprecated

Defined in

submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:152


closeRangePrompt()

closeRangePrompt(): void

Returns

void

Deprecated

Defined in

submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:101


focus()

focus(editorUnitId?): void

Parameters

ParameterType
editorUnitId?string

Returns

void

Deprecated

Defined in

submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:113


focusStyle()

focusStyle(editorUnitId): void

Parameters

ParameterType
editorUnitIdNullable<string>

Returns

void

Deprecated

Defined in

submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:142


getAllEditor()

getAllEditor(): Map<string, Editor>

Returns

Map<string, Editor>

Deprecated

Defined in

submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:78


getEditor()

getEditor(id?): Readonly<Nullable<Editor>>

Parameters

ParameterType
id?string

Returns

Readonly<Nullable<Editor>>

Defined in

submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:53


getFirstEditor()

getFirstEditor(): Editor

Returns

Editor

Deprecated

Defined in

submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:136


getFocusEditor()

getFocusEditor(): Readonly<Nullable<Editor>>

Returns

Readonly<Nullable<Editor>>

Defined in

submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:188


getFocusId()

getFocusId(): Nullable<string>

Returns

Nullable<string>

Defined in

submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:186


getOperationSheetSubUnitId()

getOperationSheetSubUnitId(): Nullable<string>

Returns

Nullable<string>

Defined in

submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:91


getOperationSheetUnitId()

getOperationSheetUnitId(): Nullable<string>

Returns

Nullable<string>

Defined in

submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:85


getRichValue()

getRichValue(id): Nullable<IDocumentBody>

Parameters

ParameterType
idstring

Returns

Nullable<IDocumentBody>

Deprecated

Defined in

submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:162


getSpreadsheetFocusState()

getSpreadsheetFocusState(): boolean

Returns

boolean

Deprecated

Defined in

submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:172


getValue()

getValue(id): Nullable<string>

Parameters

ParameterType
idstring

Returns

Nullable<string>

Deprecated

Defined in

submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:157


isEditor()

isEditor(editorUnitId): boolean

Parameters

ParameterType
editorUnitIdstring

Returns

boolean

Defined in

submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:93


isSheetEditor()

isSheetEditor(editorUnitId): boolean

Parameters

ParameterType
editorUnitIdstring

Returns

boolean

Defined in

submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:95


isVisible()

isVisible(id): Nullable<boolean>

Parameters

ParameterType
idstring

Returns

Nullable<boolean>

Deprecated

Defined in

submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:60


refreshValueChange()

refreshValueChange(editorId): void

Parameters

ParameterType
editorIdstring

Returns

void

Deprecated

Defined in

submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:147


register()

register(config, container): IDisposable

Parameters

ParameterType
configIEditorConfigParams
containerHTMLDivElement

Returns

IDisposable

Defined in

submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:55


resize()

resize(id): void

Parameters

ParameterType
idstring

Returns

void

Deprecated

Defined in

submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:73


selectionChangingState()

selectionChangingState(): boolean

Returns

boolean

Deprecated

Defined in

submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:177


setFocusId()

setFocusId(id): void

Parameters

ParameterType
idNullable<string>

Returns

void

Defined in

submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:185


setFormula()

setFormula(formulaString): void

Parameters

ParameterType
formulaStringstring

Returns

void

Deprecated

Defined in

submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:67


setOperationSheetSubUnitId()

setOperationSheetSubUnitId(sheetId): void

The sub-table within the sheet currently being operated on will determine whether to include subUnitId information in the ref.

Parameters

ParameterType
sheetIdNullable<string>

Returns

void

Defined in

submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:90


setOperationSheetUnitId()

setOperationSheetUnitId(unitId): void

The sheet currently being operated on will determine whether to include unitId information in the ref.

Parameters

ParameterType
unitIdNullable<string>

Returns

void

Defined in

submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:84


setRichValue()

setRichValue(body, editorUnitId?): void

Parameters

ParameterType
bodyIDocumentBody
editorUnitId?string

Returns

void

Deprecated

Defined in

submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:131


setValue()

setValue(val, editorUnitId?): void

Parameters

ParameterType
valstring
editorUnitId?string

Returns

void

Deprecated

Defined in

submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:121


setValueNoRefresh()

setValueNoRefresh(val, editorUnitId?): void

Parameters

ParameterType
valstring
editorUnitId?string

Returns

void

Deprecated

Defined in

submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:126


singleSelection()

singleSelection(state): void

Parameters

ParameterType
stateboolean

Returns

void

Deprecated

Defined in

submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:183