Skip to content

Instantly share code, notes, and snippets.

@reecer
Created July 17, 2014 07:26
Show Gist options
  • Save reecer/a79a5ec631767a40448a to your computer and use it in GitHub Desktop.
Save reecer/a79a5ec631767a40448a to your computer and use it in GitHub Desktop.
Simple js-interop with dart to wrap an instance of CodeMirror.
import 'dart:html';
import 'dart:js';
class CodeMirror{
var cm;
CodeMirror(Element el){
cm = context.callMethod("CodeMirror", [el]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment