Skip to content

Commit

Permalink
Merge pull request #5078 from nellaaayyy/bugfix-4709
Browse files Browse the repository at this point in the history
Fix bug - postback issue with the cke editor
  • Loading branch information
david-poindexter authored Jul 5, 2022
2 parents e095acc + 7879891 commit 200d5d4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 200d5d4

Please sign in to comment.