Skip to content
This repository was archived by the owner on Aug 22, 2019. It is now read-only.
This repository was archived by the owner on Aug 22, 2019. It is now read-only.

emmet for requirejs does not make effective #21

Description

@qq2026ai

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions