fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
editor: showing current user name
[fnpeditor.git]
/
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
(file)
--- 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();
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('Handling event ' + eventRepr);
eventHandlers[moduleName][eventName].apply(eventHandlers, args);
} else {
- logger.
debu
g('No event handler for ' + eventRepr);
+ logger.
warnin
g('No event handler for ' + eventRepr);
}
}
}
}