<!DOCTYPE html>
<head>
<script src="http://ckeditor.com/apps/ckeditor/4.2/ckeditor.js?mriyyd"></script>
<script src="http://ckeditor.com/apps/ckeditor/4.2/config.js?t=D6ID"></script>
<script src="http://eligrey.com/demos/FileSaver.js/Blob.js"></script>
<script src="http://eligrey.com/demos/FileSaver.js/FileSaver.js"></script>
</head>
<input id="input" type="file" accept="text/plain, text/html, application/xhtml+xml" />
<div id="editor"></div>
<button id="output">Сохранить в файл</button>
<script>
var editor = CKEDITOR.replace(document.querySelector('#editor'));
document.querySelector('#input').onchange = function(){
var reader = new FileReader();
reader.onload = function(e) {
editor.setData(this.result);
};
reader.readAsText(this.files[0]);
};
document.querySelector('#output').onclick = function() {
saveAs(new Blob([editor.getData()], {type: "text/html"}), 'file.html');
};
</script>
animhotep, че, говоришь, нужно?