Instead of keymapping to a like with vim or emacs, I want to create a simple html button to call one the commands from commands.js. How can I call a command from commands.js? In the end, I want to be able to do this:
<button id="TestCmd" onclick="func()">TestCmd</button>
<script>
function func() {
cm.execCommand(goLineUp);
}
</script>
You just need to quote the command name:
cm.execCommand("goLineUp");