Skip to content

Instantly share code, notes, and snippets.

@fkchang
Created September 20, 2013 15:17
Show Gist options
  • Save fkchang/6639077 to your computer and use it in GitHub Desktop.
Save fkchang/6639077 to your computer and use it in GitHub Desktop.
seamless bridging broken
@editor = %x|
editor = CodeMirror.fromTextArea(document.getElementById("multi_line_input"),
{mode: "ruby",
lineNumbers: true,
matchBrackets: true,
extraKeys: {
"Ctrl-Enter": function(cm) { $(".ui-dialog-buttonset").find("button:eq(0)").trigger("click"); } // submit on ctrl-enter
},
keyMap: "emacs",
theme: "default"
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment