From c8101069e6de3c7eeb44e97e391c9fa4b9db0872 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Thu, 14 Aug 2014 15:52:47 +0200 Subject: [PATCH] editor: fix --- src/editor/modules/documentCanvas/documentCanvas.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.20.1