new frontend API - getCurrentNoteContent and onNoteChange

This commit is contained in:
azivner
2018-09-03 16:05:28 +02:00
parent a3feaa13b3
commit c7a609e349
42 changed files with 817 additions and 106 deletions

View File

@@ -35,7 +35,7 @@ async function show() {
tabindex: 100
});
codeEditor.on('change', noteDetailService.noteChanged);
onNoteChange(noteDetailService.noteChanged);
}
$noteDetailCode.show();
@@ -85,6 +85,10 @@ async function executeCurrentNote() {
infoService.showMessage("Note executed");
}
function onNoteChange(func) {
codeEditor.on('change', func);
}
$(document).bind('keydown', "ctrl+return", executeCurrentNote);
$executeScriptButton.click(executeCurrentNote);
@@ -92,5 +96,6 @@ $executeScriptButton.click(executeCurrentNote);
export default {
show,
getContent,
focus
focus,
onNoteChange
}