Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Update index.html #3

Closed
wants to merge 1 commit into from
Closed

Conversation

Hansol-Cho
Copy link

Hi
I just changed little bit of code and it works!
will work on clear function too!

change save function
@@ -122,7 +122,7 @@ <h4>Shortcut: ctrl + x to save.</h4>
});

function save() {
let data = document.querySelector('#note').innerHTML.toString().trim();
let data = document.querySelector('#note').innerHTML;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much for your time and your effort for fixing this issue.
I have been looking at other note-taking apps for this Release1 and I noticed the problem with this part of code is that it captures and stores all HTML tags as well. So innerHTML needs to be changed to innerText.
Other than that, when the captured text gets fixed, it still is not working on the deployed version.
Some other codes I have been looking at had their functions inside the filer write/read method. That might solve this problem. I am not sure, but we can try.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants