I'm trying to make a html
editor, but I can not read the file in the editor using JavaScript
.
var loadFile = function(name) {
fileSystem.root.getFile(name, {}, function(fileEntry) {
currentFile = fileEntry;
fileEntry.file(function(file) {
var reader = new FileReader();
reader.onloadend = function(e) {
updateVisualEditor(this.result);
}
}, fsError);
}, fsError);
};