2023-10-20 22:35:26 +08:00
|
|
|
// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team <contact@cryptpad.org> and contributors
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
|
2018-10-19 00:50:38 +08:00
|
|
|
// 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 = {
|
2019-07-29 22:30:48 +08:00
|
|
|
ext: '.md'
|
2018-10-19 00:50:38 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
module.main = function (userDoc, cb) {
|
|
|
|
var content = userDoc.content;
|
|
|
|
cb(SFCodeMirror.fileExporter(content));
|
|
|
|
};
|
|
|
|
|
|
|
|
return module;
|
|
|
|
});
|
|
|
|
|
|
|
|
|