editor: fix in toolbar - missing initial value for 'document' actions param
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Fri, 11 Jul 2014 10:54:11 +0000 (12:54 +0200)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Fri, 11 Jul 2014 10:54:11 +0000 (12:54 +0200)
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);