Hmm...Extending the widget won't do me much good, as there isn't a property in there, so the solution of "Hide the original and build your own" isn't ideal, especially if you already have a lot of widgets using it.
However, it gave me a good idea...Perhaps if I overwrite the view of the rich text widget, that would work! The Html.Kentico().RichTextEditor()
method has the configuration as an optional parameter!
/Views/Shared/Kentico/Widgets/RichText/_RichTextWidget.cshtml
@using Kentico.PageBuilder.Web.Mvc
@using Kentico.Components.Web.Mvc.Widgets.Internal
@model ComponentViewModel<RichTextWidgetProperties>
@if (Context.Kentico().PageBuilder().EditMode)
{
Html.Kentico().RichTextEditor(nameof(Model.Properties.Content), configurationName: "MyConfigurationHere");
}
else
{
<div class="fr-view">
@Html.Raw(Html.Kentico().ResolveRichText(Model.Properties.Content))
</div>
}