Compact single-row toolbar for phones and tablets. Uses the editor’s built-in mobile
toolbar system — when the viewport is narrower than maxWidthForMobile the
desktop toolbar hides and a curated toolbar_mobile takes over. Pair it with
rte_mobile.css for 44×44 tap targets, sticky header, and bottom-sheet dropdowns.
One Tag Helper attribute. The editor automatically swaps in the mobile toolbar when the viewport is narrow.
<richtextbox asp-for="Body" toolbar="full" enable-mobile-toolbar="true" />
Emits <link rel="stylesheet" href="…/rte_mobile.css" />, sets config.toolbarMobile = "mobile", and provides a sensible default toolbar_mobile item list. Desktop viewers still see the full toolbar you configured.
// In your editor config { toolbar: "full", // desktop toolbarMobile: "mobile", // picks config.toolbar_mobile toolbar_mobile: "{bold,italic,underline}|{link,unlink}|{insertorderedlist,insertunorderedlist}|undo", maxWidthForMobile: 720 // viewport threshold (px) }