API Reference
@univerjs
@univerjs/uniscript
classes
Scripteditorservice

@univerjs/uniscript v0.4.2Docs


Class: ScriptEditorService

This service is for loading monaco editor and its resources. It also holds the monaco editor instance so user can interact with the editor programmatically.

Extends

Constructors

new ScriptEditorService()

new ScriptEditorService(_configService): ScriptEditorService

Parameters

ParameterType
_configServiceIConfigService

Returns

ScriptEditorService

Overrides

Disposable.constructor

Defined in

packages/uniscript/src/services/script-editor.service.ts:30 (opens in a new tab)

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedpackages/core/src/shared/lifecycle.ts:93 (opens in a new tab)

Methods

dispose()

dispose(): void

Returns

void

Inherited from

Disposable.dispose

Defined in

packages/core/src/shared/lifecycle.ts:106 (opens in a new tab)


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

packages/core/src/shared/lifecycle.ts:96 (opens in a new tab)


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

packages/core/src/shared/lifecycle.ts:100 (opens in a new tab)


getEditorInstance()

getEditorInstance(): null | IStandaloneCodeEditor

Returns

null | IStandaloneCodeEditor

Defined in

packages/uniscript/src/services/script-editor.service.ts:39 (opens in a new tab)


requireVscodeEditor()

requireVscodeEditor(): void

Returns

void

Defined in

packages/uniscript/src/services/script-editor.service.ts:43 (opens in a new tab)


setEditorInstance()

setEditorInstance(editor): IDisposable

Parameters

ParameterType
editorIStandaloneCodeEditor

Returns

IDisposable

Defined in

packages/uniscript/src/services/script-editor.service.ts:34 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.