X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/2687ec6cbbe8101a4faa232c79f5c1321dcebe6d..b673187ef27821aef4972223e465b6e09a495e77:/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 --- 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); - view.on('actionExecuted', function(action, ret) { + action.on('actionExecuted', function(ret) { sandbox.publish('actionExecuted', action, ret); }); @@ -89,6 +89,7 @@ return function(sandbox) { document.on('operationEnd', function() { setContextParam('document', document); }); + setContextParam('document', document); } setContextParam('fragment', fragment);