set active tab correctly in RichTextEditor for scenarios where rich text editor is disabled

This commit is contained in:
sbwalker 2024-03-29 07:50:03 -04:00
parent 9f654918ae
commit 93057d9449

View File

@ -159,7 +159,7 @@
_originalrichhtml = "";
// Quill wraps content in <p> tags which can be used as a signal to set the active tab
if (!string.IsNullOrEmpty(Content) && !Content.StartsWith("<p>") && AllowRawHtml)
if (!AllowRichText || (AllowRawHtml && !string.IsNullOrEmpty(Content) && !Content.StartsWith("<p>")))
{
_activetab = "Raw";
}