mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +01:00
do not store copy of data
This commit is contained in:
@@ -111,11 +111,9 @@ function init_tiny(size) {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
window.prevContent = '';
|
window.prevContent = "";
|
||||||
const onChange = (event) => {
|
const onChange = (event) => {
|
||||||
if (event.type === 'nodechange' && !event.selectionChange) return;
|
if (event.type === 'nodechange' && !event.selectionChange) return;
|
||||||
if (editor.getContent() === window.prevContent) return;
|
|
||||||
window.prevContent = editor.getContent();
|
|
||||||
|
|
||||||
if (isLoading) {
|
if (isLoading) {
|
||||||
isLoading = false;
|
isLoading = false;
|
||||||
|
|||||||
@@ -114,8 +114,7 @@ function init_tiny(size) {
|
|||||||
window.prevContent = "";
|
window.prevContent = "";
|
||||||
const onChange = (event) => {
|
const onChange = (event) => {
|
||||||
if (event.type === "nodechange" && !event.selectionChange) return;
|
if (event.type === "nodechange" && !event.selectionChange) return;
|
||||||
if (editor.getContent() === window.prevContent) return;
|
|
||||||
window.prevContent = editor.getContent();
|
|
||||||
|
|
||||||
if (isLoading) {
|
if (isLoading) {
|
||||||
isLoading = false;
|
isLoading = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user