Skip to content

Commit

Permalink
Merge pull request dnnsoftware#9 from dnnsoftware/bug/DNN-8877
Browse files Browse the repository at this point in the history
DNN-8877: Append check Page_Valid property though that check is alrea…
  • Loading branch information
Kan Ma authored Nov 29, 2017
2 parents 388da1a + 1681e4e commit 7887b45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Web/EditorControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1357,7 +1357,7 @@ private void GenerateEditorLoadScript()
//{
var postBackScript =
string.Format(
@"if (CKEDITOR && CKEDITOR.instances && CKEDITOR.instances.{0}) {{ CKEDITOR.instances.{0}.updateElement(); CKEDITOR.instances.{0}.destroy(); }}",
@"if (typeof Page_IsValid !== 'undefined' && !Page_IsValid) return; if (CKEDITOR && CKEDITOR.instances && CKEDITOR.instances.{0}) {{ CKEDITOR.instances.{0}.updateElement(); CKEDITOR.instances.{0}.destroy(); }}",
editorFixedId);

RegisterOnSubmitStatement(
Expand Down

0 comments on commit 7887b45

Please sign in to comment.