From: Aleksander Ɓukasz Date: Thu, 14 Aug 2014 13:52:47 +0000 (+0200) Subject: editor: fix X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/c8101069e6de3c7eeb44e97e391c9fa4b9db0872?ds=sidebyside;hp=-c editor: fix --- c8101069e6de3c7eeb44e97e391c9fa4b9db0872 diff --git a/src/editor/modules/documentCanvas/documentCanvas.js b/src/editor/modules/documentCanvas/documentCanvas.js index d88e698..a98fdb4 100644 --- a/src/editor/modules/documentCanvas/documentCanvas.js +++ b/src/editor/modules/documentCanvas/documentCanvas.js @@ -75,7 +75,7 @@ return function(sandbox) { canvasWrapper.find('#rng-module-documentCanvas-contentWrapper').empty().append(canvas.view()); }, onAfterActionExecuted: function(action, ret) { - if(ret && ret.isValid()) { + if(ret && ret.isValid && ret.isValid()) { logger.debug('The action returned a valid fragment'); return canvas.select(ret); }