fix: format changes are not saved in editor

This commit is contained in:
thecodrr
2021-12-10 10:08:20 +05:00
parent a0b4d0ae8a
commit dd9fb21933
5 changed files with 46 additions and 11 deletions

View File

@@ -68,6 +68,10 @@ async function getEditorContent() {
.replace(/\n+/gm, "\n");
}
async function getEditorContentAsHTML() {
return await page.innerHTML(".mce-content-body");
}
module.exports = {
NOTE,
NOTEBOOK,
@@ -78,4 +82,5 @@ module.exports = {
downloadFile,
getEditorTitle,
getEditorContent,
getEditorContentAsHTML,
};