From 7879891a005eb27eb3bbf05bcae6118e84df399f Mon Sep 17 00:00:00 2001 From: dlambert Date: Wed, 6 Apr 2022 09:50:54 -0400 Subject: [PATCH] Fix a postback issue with the cke editor --- .../HtmlEditorProviders/DNNConnect.CKE/Web/EditorControl.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DNN Platform/Providers/HtmlEditorProviders/DNNConnect.CKE/Web/EditorControl.cs b/DNN Platform/Providers/HtmlEditorProviders/DNNConnect.CKE/Web/EditorControl.cs index a2d7efdde87..756019030a9 100644 --- a/DNN Platform/Providers/HtmlEditorProviders/DNNConnect.CKE/Web/EditorControl.cs +++ b/DNN Platform/Providers/HtmlEditorProviders/DNNConnect.CKE/Web/EditorControl.cs @@ -1246,7 +1246,7 @@ private void GenerateEditorLoadScript() var editorFixedId = this.ClientID.Replace("-", string.Empty).Replace(".", string.Empty); var postBackScript = string.Format( - @" if (CKEDITOR && CKEDITOR.instances && CKEDITOR.instances.{0}) {{ CKEDITOR.instances.{0}.updateElement(); if (typeof Page_IsValid !== 'undefined' && Page_IsValid) CKEDITOR.instances.{0}.destroy(); }}", + @" if (CKEDITOR && CKEDITOR.instances && CKEDITOR.instances.{0}) {{ CKEDITOR.instances.{0}.updateElement(); if (typeof Page_IsValid !== 'undefined' && !Page_IsValid) return false; CKEDITOR.instances.{0}.destroy(); }}", editorFixedId); this.RegisterOnSubmitStatement(