Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
victorgarciaesgi opened this issue Apr 23, 2025 · 0 comments
Open

Comments

@victorgarciaesgi
Copy link

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! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant