mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 20:06:08 +01:00
empty note with just included note should be saved, closes #807
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user