Sha256: cb7dd70f9ef657bfad139feb74c59c87c7215f2daa11551b77c983a6ab6d9505
Contents?: true
Size: 1.17 KB
Versions: 15
Compression:
Stored size: 1.17 KB
Contents
//= require codemirror //= require codemirror/modes/ruby //= require codemirror/modes/haml //= require codemirror/modes/xml //= require codemirror/modes/htmlembedded //= require codemirror/modes/htmlmixed //= require codemirror/modes/javascript //= require codemirror/modes/yaml //= require codemirror/addons/dialog/dialog //= require codemirror/addons/edit/closebrackets //= require codemirror/addons/edit/closetag //= require codemirror/addons/edit/matchbrackets //= require codemirror/addons/edit/matchtags //= require codemirror/addons/edit/trailingspace class window.Adminsite Adminsite.initCodeEditor = -> $("body.adminsite textarea.code.html").each -> CodeMirror.fromTextArea $(this)[0], mode: "text/html" autoCloseTags: true lineNumbers: true return $("body.adminsite textarea.code.ruby").each -> CodeMirror.fromTextArea $(this)[0], mode: "ruby" lineNumbers: true return $("body.adminsite textarea.code.js").each -> CodeMirror.fromTextArea $(this)[0], mode: "text/javascript" matchBrackets: true autoCloseBrackets: true lineNumbers: true return $(document).on('page:change', Adminsite.initCodeEditor)
Version data entries
15 entries across 15 versions & 1 rubygems