Skip to content

Cannot change code #15

Description

@mats68

Hello

The code (editorCode) is initially correct, but cannot change it afterwards (show correct in alert):

{{> CodeMirror id="edJs" name="someName" options=editorOptions code=editorCode }}

editorOptions: function() {
return {
lineNumbers: true,
mode: "javascript"
}
},
editorCode: function() {
alert(this.js);
return this.js;
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions