I’m building an extension and I have a code editor object:
const editorFactory = (options: CodeEditor.IOptions) => {
options.config = {
lineNumbers: true
}
return new CodeMirrorEditor(options);
};
let model = new CodeEditor.Model();
let content = new CodeEditorWrapper({model, factory: editorFactory});
let widget = new MainAreaWidget({content});
Right now, when this code editor is visible on JupyterLab, I can’t save it like a file via Command s. This error: Cannot execute key binding 'Cmd S': command 'docmanager:save' is not enabled.
shows up. Is there any way I can enable it? Thanks.