2015-08-04 15 views

risposta

8

aggiungere un comando come questo

editor.commands.addCommand({ 
    name: 'save', 
    bindKey: {win: "Ctrl-S", "mac": "Cmd-S"}, 
    exec: function(editor) { 
     console.log("saving", editor.session.getValue()) 
    } 
}) 
Problemi correlati