empty note with just included note should be saved, closes #807

This commit is contained in:
zadam
2020-01-04 13:22:07 +01:00
parent 7793552443
commit d025cfee1b
3 changed files with 18 additions and 6 deletions

View File

@@ -213,7 +213,11 @@ function closeActiveDialog() {
}
function isHtmlEmpty(html) {
return $("<div>").html(html).text().trim().length === 0 && !html.toLowerCase().includes('<img');
html = html.toLowerCase();
return $("<div>").html(html).text().trim().length === 0
&& !html.includes('<img')
&& !html.includes('<section');
}
async function clearBrowserCache() {