Skip to content

Commit

Permalink
Ticket OscarGodson#204 - sync textarea with exported text rather than…
Browse files Browse the repository at this point in the history
… raw text
  • Loading branch information
lamplightdev committed Feb 7, 2013
1 parent 3cf87dd commit a184306
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions epiceditor/js/epiceditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -928,11 +928,11 @@
}

// Update the textarea on load and pull from drafts
self._textareaElement.value = self.getFiles(textareaFileName, true).content;
self._textareaElement.value = self.exportFile(textareaFileName, 'text', true);

// Make sure to keep it updated
self.on('__update', function () {
self._textareaElement.value = self.getFiles(textareaFileName, true).content;
self._textareaElement.value = self.exportFile(textareaFileName, 'text', true);
});
}

Expand Down
Loading

0 comments on commit a184306

Please sign in to comment.