Skip to content

[Feature Request] Expose Monacoeditor instance for theming options #335

@victorgarciaesgi

Description

@victorgarciaesgi

Hey!

Super cool to have the Vue Repl so easy to use.

I was wondering if there is a way to have the editor instance used by Monaco component, because if I understand well, the whole monaco editor is bundled with it, so doing this will not work:

import * as monaco from 'monaco-editor-core';

onMounted(() => {
   monaco.editor.defineTheme(...)
   monaco.editor.setTheme(..)
})

Exposing the editor instance of the component would make it accessible with a template ref 👍

Maybe even an option in editorOptions.monacoOptions props could work!

Thanks! 🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions