serdarciplak / BlazorMonaco

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

Added support to server side applications and server side example #93

Closed FireGamesCZ closed 11 months ago

FireGamesCZ commented 1 year ago

The support was added by editing the GetModel function so it will pass IJSRuntime from page where Monaco editor was called

LuvForAirplanes commented 1 year ago

Could we get this merged?

serdarciplak commented 11 months ago

This PR does not fix the issue but patches it for just one use-case. Instead of that, I've deprecated the static IJSRuntime instance and added support for server-side apps to provide their own IJSRuntime instances when needed. You can find the fix here : #98