Implement full CryptDrive export
This commit is contained in:
1 parent
92ce311694
commit
3e9e92dcac
18 files changed
+449
-142
No files matched your search
@@ -0,0 +1,17 @@
|
||||
// This file is used when a user tries to export the entire CryptDrive.
|
||||
// Pads from the code app will be exported using this format instead of plain text.
|
||||
define([
|
||||
'/common/sframe-common-codemirror.js',
|
||||
], function (SFCodeMirror) {
|
||||
var module = {};
|
||||
|
||||
module.main = function (userDoc, cb) {
|
||||
var mode = userDoc.highlightMode || 'gfm';
|
||||
var content = userDoc.content;
|
||||
module.type = SFCodeMirror.getContentExtension(mode);
|
||||
cb(SFCodeMirror.fileExporter(content));
|
||||
};
|
||||
|
||||
return module;
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user