Sha256: d00409ef90fd2a8b5b24107e77bd2c6c5c683f6e38b46229efe549b12854bafa
Contents?: true
Size: 472 Bytes
Versions: 22
Compression:
Stored size: 472 Bytes
Contents
I"Ì(function() { $(function() { return $('textarea[data-add-editor]').each(function() { var div_id, editor, textarea; textarea = this; div_id = "editor_for_" + ($(textarea).attr('id')); $(textarea).after("<div id=\"" + div_id + "\" class=\"editor\"></div>"); editor = ace.edit("" + div_id); return editor.on('input', function() { return $(textarea).val(editor.getValue()); }); }); }); }).call(this); :ET
Version data entries
22 entries across 22 versions & 2 rubygems