event fixes WIP

This commit is contained in:
zadam
2020-03-06 23:34:39 +01:00
parent e10d23289e
commit 091eb8f791
5 changed files with 9 additions and 11 deletions

View File

@@ -4,12 +4,12 @@ import utils from "../services/utils.js";
const $dialog = $("#note-source-dialog");
const $noteSource = $("#note-source");
export function showDialog() {
export async function showDialog() {
utils.openDialog($dialog);
const noteText = appContext.tabManager.getActiveTabNote().content;
const noteCompletement = await appContext.tabManager.getActiveTabContext().getNoteComplement();
$noteSource.text(formatHtml(noteText));
$noteSource.text(formatHtml(noteCompletement.content));
}
function formatHtml(str) {