mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 22:49:45 +01:00
fix: format changes are not saved in editor
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user