Update:

When opening a file.  If the file is mapped to a regular html element then use textContent to get the content.  If the file is mapped to a textarea use value so that changed / pasted values are retrieved rather than the initial default values.