fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
don't ask on unload unless document is dirty
[fnpeditor.git]
/
src
/
editor
/
modules
/
documentToolbar
/
documentToolbar.js
diff --git
a/src/editor/modules/documentToolbar/documentToolbar.js
b/src/editor/modules/documentToolbar/documentToolbar.js
index
b66734f
..
6e3d630
100644
(file)
--- a/
src/editor/modules/documentToolbar/documentToolbar.js
+++ b/
src/editor/modules/documentToolbar/documentToolbar.js
@@
-27,7
+27,7
@@
return function(sandbox) {
});
group.append(view.dom);
});
group.append(view.dom);
-
view.on('actionExecuted', function(action,
ret) {
+
action.on('actionExecuted', function(
ret) {
sandbox.publish('actionExecuted', action, ret);
});
sandbox.publish('actionExecuted', action, ret);
});
@@
-89,6
+89,7
@@
return function(sandbox) {
document.on('operationEnd', function() {
setContextParam('document', document);
});
document.on('operationEnd', function() {
setContextParam('document', document);
});
+ setContextParam('document', document);
}
setContextParam('fragment', fragment);
}
setContextParam('fragment', fragment);