Closed fdeitelhoff closed 1 year ago
I'm playing with this component https://github.com/Teradata/covalent-code-editor to use in a browser, but they have a lot of code for Electron
resurrecting this old thread. Has anybody successfully done the integration with angular and electron?
There seems to be no clean of way of doing it. Any body, who has succeeded, please provide directions
Have you tried loading the ESM distribution with webpack or another loader that can load ESM?
I think you can also load the loader in a way where it doesn't define global symbols e.g.
const loader = require('./vs/loader');
loader.config(...);
loader(['vs/editor/editor.main'], function () { ... });
Closing due to inactivity.
monaco-editor version: 0.8.3 Browser: Electron (Chromium) OS: Windows 10
I'm trying to integrate the monaco editor in my Angular 4 app inside Electron. Angular 4 and Electron are working fine right now but I have problems getting monaco working.
Has someone ever solved this? I love monaco but those integration problems drives me crazy. Currently I'm working with this code:
The global variable cannot be found. Originally it was called window. I think the problem is that there's no global variable within the Angular component but I'm not quite sure.
Maybe someone has a solution to this.