Skip to content

CodeEditor - allow additional props to monaco-editor #10077

@kmcfaul

Description

@kmcfaul

Add a new prop (maybe editorProps) that spreads additional properties to the monaco-editor Editor component, to allow further customization of the editor.

At a minimum, this will allow the beforeMount property of Editor to be passed, which should resolve the issue of monaco-yaml autocomplete not functioning with @monaco-editor/react (via calling monaco-yaml's configureMonacoYaml in the beforeMount handler). The Readme should also be updated to mention this requirement for monaco-yaml usage.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions