codemirror
codemirror copied to clipboard
emmet for requirejs does not make effective
this is my demo
require(['jquery', 'codemirror','codemirror/addon/emmet/emmet', 'codemirror/mode/htmlmixed/htmlmixed'], function($, CodeMirror,Emmet) {
var CodeMirrorObj = {
cms: {
htmlCm: null
},
opts: {
htmlOpt: {
lineNumbers: true,
mode: "text/html",
theme: "monokai",
indentUnit: 4,
indentWithTabs: true
}
},
init: function() {
this.cms.htmlCm = Emmet(CodeMirror(document.getElementById("code_html"), CodeMirrorObj.opts.htmlOpt));
}
}
CodeMirrorObj.init();
});
I need your help。
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.