Implement full CryptDrive export
This commit is contained in:
18
www/slide/export.js
Normal file
18
www/slide/export.js
Normal file
@@ -0,0 +1,18 @@
|
||||
// This file is used when a user tries to export the entire CryptDrive.
|
||||
// Pads from the slide app will be exported using this format instead of plain text.
|
||||
define([
|
||||
'/common/sframe-common-codemirror.js',
|
||||
], function (SFCodeMirror) {
|
||||
var module = {
|
||||
type: 'md'
|
||||
};
|
||||
|
||||
module.main = function (userDoc, cb) {
|
||||
var content = userDoc.content;
|
||||
cb(SFCodeMirror.fileExporter(content));
|
||||
};
|
||||
|
||||
return module;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user