Closed pcsolutioncz closed 1 year ago
Hi @pcsolutioncz ConstructionOptions are only for the initial values. You can use the UpdateOptions
method of the editor instance to update any options you may need after the initialization.
Hi, thank you for the hint, but I can't see a method for changing language in EditorUpdateOptions. Can you send me an example? Thank you David
Hi.
You can use the BlazorMonaco.Global.SetModelLanguage()
method with the model instance of your editor.
Global.SetModelLanguage(editor.GetModel(), "javascript");
BTW, as BlazorMonaco is just a wrapper for the Monaco Editor JS library, you can use its documentation for reference.
Hi, is it possible to change ConstructionOptions in Blazor after event? I need to change the language in the editor.
Example:
Thank you David