serdarciplak / BlazorMonaco

Blazor component for Microsoft's Monaco Editor which powers Visual Studio Code.
https://serdarciplak.github.io/BlazorMonaco/
MIT License
441 stars 99 forks source link

How to hook on preexisting monaco editor #72

Closed Kuinox closed 1 year ago

Kuinox commented 1 year ago

Hello, Thanks for the project, I'm currently using it for a small Web Editor: https://draco-lang.github.io/

As you can currently see, the loading time right now is very slow due to blazor (and me shipping untrimmed DLLs, but that another problem).

One easy fix to remove the loading time I want to do is to display the text editors, before blazor is loaded.

The issue is that now my editors are not created by BlazorMonaco, and I don't see a way to wrap an existing editor.

Kuinox commented 1 year ago

I dropped this dependency and wrote more logic in JS instead.