Sha256: 7b7dcb60568ec6dbeb6bc6cd8e7d2e1323a91160e9f447d581e68bd43b55a545
Contents?: true
Size: 754 Bytes
Versions: 5
Compression:
Stored size: 754 Bytes
Contents
document.on('as:form_loaded', 'form.as_form', function(event) { var as_form = event.findElement('form'); as_form.select('textarea.mceEditor').each(function(elem) { tinyMCE.execCommand('mceAddControl', false, elem.id); }); return true; }); document.on('as:form_submit', 'form.as_form', function(event) { var as_form = event.findElement('form'); if (as_form.has('textarea.mceEditor').length > 0) { tinyMCE.triggerSave(); } return true; }); document.on('as:form_unloaded', 'form.as_form', function(event) { var as_form = event.findElement('form'); as_form.select('textarea.mceEditor').each(function(elem) { tinyMCE.execCommand('mceRemoveControl', false, elem.id); }); return true; });
Version data entries
5 entries across 5 versions & 1 rubygems