Katheryne/Frontend/Pages/Editor.razor
2023-10-14 22:12:19 +08:00

19 lines
459 B
Plaintext

@page "/editor"
<Layout>
<Content>
<div class="editor-zone">
<StandaloneCodeEditor ConstructionOptions="GetEditorConstructionOptions" Id="my-editor-instance"/>
</div>
</Content>
</Layout>
@code {
private StandaloneEditorConstructionOptions GetEditorConstructionOptions(StandaloneCodeEditor editor)
{
return new StandaloneEditorConstructionOptions
{
Language = "yaml"
};
}
}