updated API docs

This commit is contained in:
zadam
2019-03-12 21:42:27 +01:00
parent 6d09931a39
commit 65684550a8
4 changed files with 177 additions and 62 deletions

View File

@@ -232,6 +232,12 @@ function FrontendScriptApi(startNote, currentNote, originEntity = null) {
*/
this.getCurrentNoteContent = noteDetailService.getCurrentNoteContent;
/**
* @method
* @returns {NoteFull} currently loaded note in the editor (HTML, code etc.)
*/
this.getCurrentNote = noteDetailService.getCurrentNote;
/**
* This method checks whether user navigated away from the note from which the scripts has been started.
* This is necessary because script execution is async and by the time it is finished, the user might have