wlxml: cleanup
[fnpeditor.git] / src / editor / modules / documentToolbar / documentToolbar.js
index b66734f..9ae5c94 100644 (file)
@@ -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);