WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
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