Sha256: d463e14614a1278fb703ab570e615fbdffe2ef7a0d29d6c66ff864a530df510d
Contents?: true
Size: 539 Bytes
Versions: 22
Compression:
Stored size: 539 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\">" + ($(textarea).val) + "</div>"); $(textarea).css('display', 'none'); 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