Sha256: 2895d9baef76271ee5153daafc0d49f9d7ae086455ae4cae33bbc0149310f456
Contents?: true
Size: 650 Bytes
Versions: 22
Compression:
Stored size: 650 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); if (textarea.is('[data-editor-syntax]')) { editor.session.setMode("ace/mode/textile"); } return editor.on('input', function() { return $(textarea).val(editor.getValue()); }); }); }); }).call(this); :ET
Version data entries
22 entries across 22 versions & 2 rubygems