Merge pull request #4081 from sbwalker/dev

set active tab correctly in RichTextEditor for scenarios where rich text editor is disabled
This commit is contained in:
Shaun Walker 2024-03-29 07:50:27 -04:00 committed by GitHub
commit 8d8436f1f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -159,7 +159,7 @@
_originalrichhtml = ""; _originalrichhtml = "";
// Quill wraps content in <p> tags which can be used as a signal to set the active tab // 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"; _activetab = "Raw";
} }