X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/3bd06959f2210e5d03b9377400b3b02b18a2e1ae..8244aae227025150a77d6377caa52e0b7b0b5cbc:/src/editor/modules/data/data.js diff --git a/src/editor/modules/data/data.js b/src/editor/modules/data/data.js index 7488390..ef1c87d 100644 --- a/src/editor/modules/data/data.js +++ b/src/editor/modules/data/data.js @@ -238,6 +238,12 @@ return function(sandbox) { }); dialog.show(); }, + dropDraft: function() { + logger.debug('Dropping a draft...'); + wlxmlDocument.loadXML(sandbox.getBootstrappedData().document); + draftDirty = false; + logger.debug('Draft dropped'); + }, getDocumentId: function() { return document_id; },