Sha256: 06ceb49f9a670d9d9a8f456a266caae7a382f3e8250e9df71e206dbd7090bfd6
Contents?: true
Size: 647 Bytes
Versions: 4
Compression:
Stored size: 647 Bytes
Contents
$(document).ready -> $('.ace_javascript_editor').each -> editor_area = document.createElement('div') this.appendChild(editor_area) # Initialize Ace Editor editor = ace.edit(editor_area) editor.getSession().setMode("ace/mode/javascript") editor.getSession().setTabSize(2) editor.getSession().setUseWrapMode(true); editor.setPrintMarginColumn(800) editor.setOptions({ minLines: 8, maxLines: Infinity }); textarea = $(this).children('textarea').hide() editor.getSession().setValue textarea.val() editor.getSession().on "change", -> textarea.val editor.getSession().getValue()
Version data entries
4 entries across 4 versions & 1 rubygems