Add import & export in pad2

This commit is contained in:
yflory
2017-08-21 15:34:21 +02:00
parent 1da11a1883
commit b2e6df1f9d
2 changed files with 18 additions and 6 deletions

View File

@@ -528,6 +528,18 @@ define([
$('.cke_toolbox_main').hide();
}
/* add an export button */
var $export = Cryptpad.createButton('export', true, {}, exportFile);
$drawer.append($export);
if (!readOnly) {
/* add an import button */
var $import = Cryptpad.createButton('import', true, {
accept: 'text/html'
}, importFile);
$drawer.append($import);
}
/* add a forget button */
var forgetCb = function (err) {
if (err) { return; }
@@ -640,16 +652,16 @@ define([
}
/* add an export button */
var $export = Cryptpad.createButton('export', true, {}, exportFile);
/*var $export = Cryptpad.createButton('export', true, {}, exportFile);
$drawer.append($export);
if (!readOnly) {
*/
//if (!readOnly) {
/* add an import button */
var $import = Cryptpad.createButton('import', true, {
/* var $import = Cryptpad.createButton('import', true, {
accept: 'text/html'
}, importFile);
$drawer.append($import);
}
}*/
/* add a forget button */
/* var forgetCb = function (err) {