mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
MDL-28987 Forms Library: Added tinyMCE onblur event callback for required tinymce fields
This commit is contained in:
parent
cbe20ec362
commit
ab978b38c4
4 changed files with 57 additions and 18 deletions
|
@ -172,7 +172,10 @@ class tinymce_texteditor extends texteditor {
|
|||
$params['file_browser_callback'] = "M.editor_tinymce.filepicker";
|
||||
}
|
||||
}
|
||||
|
||||
//Add onblur event for client side text validation
|
||||
if (!empty($options['required'])) {
|
||||
$params['init_instance_callback'] = 'M.editor_tinymce.onblur_event';
|
||||
}
|
||||
return $params;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue