Add indentAuto to actions

This commit is contained in:
Grant Nestor 2018-01-05 15:42:27 -08:00
parent 3857c9201c
commit 630ef639dd

View File

@ -684,6 +684,16 @@ define([
}
}
},
'auto-indent': {
cmd: i18n.msg._('automatically indent selection'),
help : i18n.msg._('automatically indent selection'),
handler : function(env) {
// Get selected cell
var selected_cell = env.notebook.get_selected_cell();
// Execute a CM command
selected_cell.code_mirror.execCommand('indentAuto');
}
}
};
/**