Add history to pad2

This commit is contained in:
yflory
2017-08-21 17:40:21 +02:00
parent b2e6df1f9d
commit 8d837d22ea
5 changed files with 84 additions and 12 deletions

View File

@@ -528,6 +528,17 @@ define([
$('.cke_toolbox_main').hide();
}
/* add a history button */
var histConfig = {
onLocal: realtimeOptions.onLocal,
onRemote: realtimeOptions.onRemote,
setHistory: setHistory,
applyVal: function (val) { applyHjson(val || '["BODY",{},[]]'); },
$toolbar: $bar
};
var $hist = common.createButton('history', true, {histConfig: histConfig});
$drawer.append($hist);
/* add an export button */
var $export = Cryptpad.createButton('export', true, {}, exportFile);
$drawer.append($export);