Closed lbrysh closed 2 years ago
In index.html add script section:
In your Blazor component where MonacoDiffEditor is initialized at the end of EditorOnDidInit method add:
string navOptionJson = JsonSerializer.Serialize(new { FollowsCaret = true, IgnoreCharChanges = true, AlwaysRevealFirst = true }, new JsonSerializerOptions
{
IgnoreNullValues = true,
PropertyNamingPolicy = JsonNamingPolicy.CamelCase
});
var navOptionsDict = JsonSerializer.Deserialize<JsonElement>(navOptionJson);
await jsRuntime.InvokeVoidAsync("CreateDiffNavigator", m_diffEditor.Id, navOptionsDict);
Hello,
Is there a way to create "createDiffNavigator" and access its functionality?