From 17370dff54d4d4a84271f12f265a9785c1c3c373 Mon Sep 17 00:00:00 2001 From: sbwalker Date: Thu, 11 Apr 2024 09:16:39 -0400 Subject: [PATCH] fix issue where active tab not set correctly when rich text editor disabled --- Oqtane.Client/Modules/Controls/RichTextEditor.razor | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Oqtane.Client/Modules/Controls/RichTextEditor.razor b/Oqtane.Client/Modules/Controls/RichTextEditor.razor index d22f2336..77967c9f 100644 --- a/Oqtane.Client/Modules/Controls/RichTextEditor.razor +++ b/Oqtane.Client/Modules/Controls/RichTextEditor.razor @@ -157,6 +157,11 @@ _rawhtml = Content; _originalrawhtml = _rawhtml; // preserve for comparison later _originalrichhtml = ""; + + if (!AllowRichText) + { + _activetab = "Raw"; + } } protected override async Task OnAfterRenderAsync(bool firstRender)