Sha256: 2457cc7e23d2b7fea198b2660c2cbc6a3e0a2765594fcd78b2ec15ea29786482
Contents?: true
Size: 676 Bytes
Versions: 36
Compression:
Stored size: 676 Bytes
Contents
var action_link_close = ActiveScaffold.ActionLink.Abstract.prototype.close; ActiveScaffold.ActionLink.Abstract.prototype.close = function() { this.adapter.select('textarea.mceEditor').each(function(elem) { tinymce.remove('#'+elem.id); }); action_link_close.apply(this); }; document.on('submit', 'form.as_form', function() { tinymce.triggerSave(); this.select('textarea.mceEditor').each(function(elem) { tinymce.remove('#'+elem.id); }); }); /* for persistent update forms */ document.on('ajax:complete', 'form.as_form', function(event) { this.select('textarea.mceEditor').each(function(elem) { tinyMCE.execCommand('mceAddEditor', false, elem.id); }); });
Version data entries
36 entries across 36 versions & 1 rubygems