git pre-commit hook that lints js code
[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);
                 });
+                setContextParam('document', document);
             }
             setContextParam('fragment', fragment);