remove mismatched html tags
[fnpeditor.git] / src / editor / modules / documentToolbar / documentToolbar.js
index b66734f..6e3d630 100644 (file)
@@ -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);