X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/1cad60261451f283d49cff80d02b819ccd6902dd..8244aae227025150a77d6377caa52e0b7b0b5cbc:/src/editor/modules/rng/rng.js diff --git a/src/editor/modules/rng/rng.js b/src/editor/modules/rng/rng.js index 469d0e4..78145a5 100644 --- a/src/editor/modules/rng/rng.js +++ b/src/editor/modules/rng/rng.js @@ -151,6 +151,9 @@ return function(sandbox) { sourceEditor.commitChanges(); } sandbox.getModule('data').saveDocument(); + }, + 'cmd.drop-draft': function() { + sandbox.getModule('data').dropDraft(); } }; @@ -289,7 +292,7 @@ return function(sandbox) { logger.debug('Handling event ' + eventRepr); eventHandlers[moduleName][eventName].apply(eventHandlers, args); } else { - logger.debug('No event handler for ' + eventRepr); + logger.warning('No event handler for ' + eventRepr); } }