跳到主要内容
版本:1.x

Class: EditorModel

molecule.model.EditorModel

Implements

Constructors

constructor

new EditorModel(current?, groups?, entry, editorOptions?)

Parameters

NameTypeDefault value
currentnull | IEditorGroup<any, any>null
groupsIEditorGroup<any, any>[][]
entryReactNodeundefined
editorOptionsIEditorOptions{}

Defined in

model/workbench/editor.ts:111

Properties

current

current: null | IEditorGroup<any, any>

Current editor group

Implementation of

IEditor.current

Defined in

model/workbench/editor.ts:106


editorOptions

editorOptions: IEditorOptions

Built-in editor options, there is main apply it to monaco-editor

Implementation of

IEditor.editorOptions

Defined in

model/workbench/editor.ts:109


entry

entry: ReactNode

The welcome page of editor bench

Implementation of

IEditor.entry

Defined in

model/workbench/editor.ts:108


groups

groups: IEditorGroup<any, any>[]

Editor Groups

Implementation of

IEditor.groups

Defined in

model/workbench/editor.ts:107