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


Class: EditorService

Deprecated

Extends

Implements

Constructors

new EditorService()

new EditorService(
   _univerInstanceService, 
   _renderManagerService, 
   _lexerTreeBuilder, 
   _docSelectionManagerService, 
   _contextService, 
   _commandService, 
   _undoRedoService): EditorService

Parameters

ParameterType
_univerInstanceServiceIUniverInstanceService
_renderManagerServiceIRenderManagerService
_lexerTreeBuilderLexerTreeBuilder
_docSelectionManagerServiceDocSelectionManagerService
_contextServiceIContextService
_commandServiceICommandService
_undoRedoServiceIUndoRedoService

Returns

EditorService

Overrides

Disposable.constructor

Defined in

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

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:93
blur$readonlyObservable<unknown>undefined-submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:213
closeRangePrompt$readonlyObservable<unknown>undefined-submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:210
focus$readonlyObservable<ISuccinctDocRangeParam>undefined-submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:216
focusStyle$readonlyObservable<Nullable<string>>undefined-submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:225
inputFormula$readonlyObservable<IEditorInputFormulaParam>undefined-submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:204
resize$readonlyObservable<string>undefined-submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:207
setValue$readonlyObservable<IEditorSetValueParam>undefined-submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:219
singleSelection$readonlyObservable<boolean>undefined-submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:228
state$readonlyObservable<Nullable<IEditorStateParams>>undefined-submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:197
valueChange$readonlyObservable<Readonly<Editor>>undefined-submodules/univer/packages/docs-ui/src/services/editor/editor-manager.service.ts:222

Methods

blur()

blur(): void

Returns

void

Deprecated

Implementation of

IEditorService.blur

Defined in

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


changeSpreadsheetFocusState()

changeSpreadsheetFocusState(state): void

Parameters

ParameterType
stateboolean

Returns

void

Deprecated

Implementation of

IEditorService.changeSpreadsheetFocusState

Defined in

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


checkValueLegality()

checkValueLegality(editorUnitId): boolean

Parameters

ParameterType
editorUnitIdstring

Returns

boolean

Deprecated

Implementation of

IEditorService.checkValueLegality

Defined in

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


closeRangePrompt()

closeRangePrompt(): void

Returns

void

Deprecated

Implementation of

IEditorService.closeRangePrompt

Defined in

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


dispose()

dispose(): void

Returns

void

Implementation of

IDisposable.dispose

Overrides

Disposable.dispose

Defined in

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


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:96


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:100


focus()

focus(editorUnitId): void

Parameters

ParameterType
editorUnitIdundefined | string

Returns

void

Deprecated

Implementation of

IEditorService.focus

Defined in

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


focusStyle()

focusStyle(editorUnitId): undefined | false

Parameters

ParameterType
editorUnitIdstring

Returns

undefined | false

Deprecated

Implementation of

IEditorService.focusStyle

Defined in

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


getAllEditor()

getAllEditor(): Map<string, Editor>

Returns

Map<string, Editor>

Deprecated

Implementation of

IEditorService.getAllEditor

Defined in

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


getEditor()

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

Parameters

ParameterType
idstring

Returns

Readonly<Nullable<Editor>>

Implementation of

IEditorService.getEditor

Defined in

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


getFirstEditor()

getFirstEditor(): Editor

Returns

Editor

Deprecated

Implementation of

IEditorService.getFirstEditor

Defined in

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


getFocusEditor()

getFocusEditor(): Readonly<Nullable<Editor>>

Returns

Readonly<Nullable<Editor>>

Deprecated

Implementation of

IEditorService.getFocusEditor

Defined in

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


getFocusId()

getFocusId(): Nullable<string>

Returns

Nullable<string>

Deprecated

Implementation of

IEditorService.getFocusId

Defined in

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


getOperationSheetSubUnitId()

getOperationSheetSubUnitId(): Nullable<string>

Returns

Nullable<string>

Deprecated

Implementation of

IEditorService.getOperationSheetSubUnitId

Defined in

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


getOperationSheetUnitId()

getOperationSheetUnitId(): Nullable<string>

Returns

Nullable<string>

Deprecated

Implementation of

IEditorService.getOperationSheetUnitId

Defined in

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


getRichValue()

getRichValue(id): undefined | IDocumentBody

Parameters

ParameterType
idstring

Returns

undefined | IDocumentBody

Deprecated

Implementation of

IEditorService.getRichValue

Defined in

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


getSpreadsheetFocusState()

getSpreadsheetFocusState(): boolean

Returns

boolean

Deprecated

Implementation of

IEditorService.getSpreadsheetFocusState

Defined in

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


getValue()

getValue(id): undefined | string

Parameters

ParameterType
idstring

Returns

undefined | string

Deprecated

Implementation of

IEditorService.getValue

Defined in

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


isEditor()

isEditor(editorUnitId): boolean

Parameters

ParameterType
editorUnitIdstring

Returns

boolean

Implementation of

IEditorService.isEditor

Defined in

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


isSheetEditor()

isSheetEditor(editorUnitId): boolean

Parameters

ParameterType
editorUnitIdstring

Returns

boolean

Deprecated

Implementation of

IEditorService.isSheetEditor

Defined in

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


isVisible()

isVisible(id): undefined | boolean

Parameters

ParameterType
idstring

Returns

undefined | boolean

Deprecated

Implementation of

IEditorService.isVisible

Defined in

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


refreshValueChange()

refreshValueChange(editorUnitId): void

Parameters

ParameterType
editorUnitIdstring

Returns

void

Deprecated

Implementation of

IEditorService.refreshValueChange

Defined in

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


register()

register(config, container): IDisposable

Parameters

ParameterType
configIEditorConfigParams
containerHTMLDivElement

Returns

IDisposable

Implementation of

IEditorService.register

Defined in

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


resize()

resize(unitId): void

Parameters

ParameterType
unitIdstring

Returns

void

Deprecated

Implementation of

IEditorService.resize

Defined in

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


selectionChangingState()

selectionChangingState(): boolean

Returns

boolean

Deprecated

Implementation of

IEditorService.selectionChangingState

Defined in

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


setFocusId()

setFocusId(id): void

Parameters

ParameterType
idNullable<string>

Returns

void

Deprecated

Implementation of

IEditorService.setFocusId

Defined in

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


setFormula()

setFormula(formulaString, editorUnitId): void

Parameters

ParameterType
formulaStringstring
editorUnitIdstring

Returns

void

Deprecated

Implementation of

IEditorService.setFormula

Defined in

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


setOperationSheetSubUnitId()

setOperationSheetSubUnitId(sheetId): void

Parameters

ParameterType
sheetIdNullable<string>

Returns

void

Deprecated

Implementation of

IEditorService.setOperationSheetSubUnitId

Defined in

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


setOperationSheetUnitId()

setOperationSheetUnitId(unitId): void

Parameters

ParameterType
unitIdNullable<string>

Returns

void

Deprecated

Implementation of

IEditorService.setOperationSheetUnitId

Defined in

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


setRichValue()

setRichValue(body, editorUnitId): void

Parameters

ParameterType
bodyIDocumentBody
editorUnitIdstring

Returns

void

Deprecated

Implementation of

IEditorService.setRichValue

Defined in

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


setValue()

setValue(val, editorUnitId): void

Parameters

ParameterType
valstring
editorUnitIdstring

Returns

void

Deprecated

Implementation of

IEditorService.setValue

Defined in

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


setValueNoRefresh()

setValueNoRefresh(val, editorUnitId): void

Parameters

ParameterType
valstring
editorUnitIdstring

Returns

void

Deprecated

Implementation of

IEditorService.setValueNoRefresh

Defined in

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


singleSelection()

singleSelection(state): void

Parameters

ParameterType
stateboolean

Returns

void

Deprecated

Implementation of

IEditorService.singleSelection

Defined in

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