codemirror icon indicating copy to clipboard operation
codemirror copied to clipboard

emmet for requirejs does not make effective

Open qsfty opened this issue 9 years ago • 0 comments

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.

qsfty avatar Aug 12 '16 17:08 qsfty