From: Aleksander Ɓukasz Date: Fri, 11 Jul 2014 10:54:11 +0000 (+0200) Subject: editor: fix in toolbar - missing initial value for 'document' actions param X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/58fc71a8c51ee9e8df92827ed380497d2b131841?ds=sidebyside;hp=b616f6757e950aea9f757d7426550cab3bdff1ec editor: fix in toolbar - missing initial value for 'document' actions param --- diff --git a/src/editor/modules/documentToolbar/documentToolbar.js b/src/editor/modules/documentToolbar/documentToolbar.js index b66734f..9ae5c94 100644 --- a/src/editor/modules/documentToolbar/documentToolbar.js +++ b/src/editor/modules/documentToolbar/documentToolbar.js @@ -89,6 +89,7 @@ return function(sandbox) { document.on('operationEnd', function() { setContextParam('document', document); }); + setContextParam('document', document); } setContextParam('fragment', fragment);