File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<MudStack Justify =" Justify.FlexEnd" Row =" true" >
2+ <MudButton OnClick =" AddParagraph" Size =" Size.Small" >Add Paragraph</MudButton >
23 <MudButton OnClick =" OnCancel" Size =" Size.Small" >Cancel</MudButton >
34 <MudButton OnClick =" Reset" Size =" Size.Small" >Reset</MudButton >
45 <MudButton Color =" Color.Primary" OnClick =" SaveChanges" Size =" Size.Small" StartIcon =" @Icons.Material.Filled.Save" Variant =" Variant.Filled" >Save Changes</MudButton >
3334 {
3435 await OnSave .InvokeAsync (_html );
3536 }
37+
38+ private async Task AddParagraph ()
39+ {
40+ await _editor .SetHtml (_editor .Html + Environment .NewLine + " <p>New Paragraph</p>" );
41+ }
3642}
Original file line number Diff line number Diff line change 11<MudStack Justify =" Justify.FlexEnd" Row =" true" >
2+ <MudButton OnClick =" AddParagraph" Size =" Size.Small" >Add Paragraph</MudButton >
23 <MudButton OnClick =" OnCancel" Size =" Size.Small" >Cancel</MudButton >
34 <MudButton OnClick =" Reset" Size =" Size.Small" >Reset</MudButton >
45 <MudButton Color =" Color.Primary" OnClick =" SaveChanges" Size =" Size.Small" StartIcon =" @Icons.Material.Filled.Save" Variant =" Variant.Filled" >Save Changes</MudButton >
3334 {
3435 await OnSave .InvokeAsync (_html );
3536 }
37+
38+ private async Task AddParagraph ()
39+ {
40+ await _editor .SetHtml (_editor .Html + Environment .NewLine + " <p>New Paragraph</p>" );
41+ }
3642}
You can’t perform that action at this time.
0 commit comments