Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-28987 Forms Library: Removed onBlur validation. Now the validatio…

…n will occur on form submit only
  • Loading branch information...
commit a82e9ada37104cd78a236a4ca6aec17bea5b6f74 1 parent ab978b3
Rajesh Taneja authored
Showing with 1 addition and 10 deletions.
  1. +1 −10 lib/editor/tinymce/module.js
11 lib/editor/tinymce/module.js
@@ -80,20 +80,11 @@ M.editor_tinymce.onblur_event = function(ed) {
//have loaded contents and submitting form should not throw error.;
- //Attach blur event for tinymce to call onchange validation function of textarea.
+ //Attach blur event for tinymce to save contents to textarea
var doc = s.content_editable ? ed.getBody() : (tinymce.isGecko ? ed.getDoc() : ed.getWin());
tinymce.dom.Event.add(doc, 'blur', function() {
//save contents to textarea before calling validation script.;
- var element = document.getElementById(;
- element.onchange(element);
- });
- //Add an extra event to make sure after window is blurred because of user clicking
- //out of tinymce or any popup occured, then error should be cleaned on focusing back.
- tinymce.dom.Event.add(doc, 'focus', function() {
- var element = document.getElementById(;
- qf_errorHandler(element, '');
Please sign in to comment.
Something went wrong with that request. Please try again.