cryptpad/www/slide/export.js
2018-10-18 18:50:38 +02:00

18 lines
447 B
JavaScript

// 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;
});