book handling of protected notes

This commit is contained in:
zadam
2019-10-06 11:21:12 +02:00
parent d23e9f1bc4
commit 7423b2f4fd
3 changed files with 44 additions and 11 deletions

View File

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