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:
commit
8d8436f1f1
|
@ -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";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user