WIP make oo encrypted

This commit is contained in:
ansuz
2018-03-05 14:05:53 +01:00
parent ee4d12bd57
commit 978b6b95df
3 changed files with 94 additions and 84 deletions

View File

@@ -66,12 +66,17 @@ define([
config.onRemote();
}
var getContent = function () {
var getContent = APP.getContent = function () {
APP.ed = window.frames[0].frames[0].editor;
try {
return window.frames[0].frames[0].editor.asc_nativeGetFile();
} catch (e) { return null; }
};
var setContent = APP.setContent = function (content) {
};
var saveDocument = APP.saveDocument = function () {
var defaultName = "text.oot";
UI.prompt(Messages.exportPrompt, defaultName, function (filename) {