Use asp-for to bind the editor to a PageModel property for automatic model binding on form submission.
// PageModel
[BindProperty]
public string Body { get; set; }
// Razor Page
<form method="post">
<richtextbox asp-for="Body"
toolbar="default"
height="300px" />
<button type="submit">Submit</button>
</form>