editor: fix
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Thu, 14 Aug 2014 13:52:47 +0000 (15:52 +0200)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Thu, 14 Aug 2014 14:26:12 +0000 (16:26 +0200)
src/editor/modules/documentCanvas/documentCanvas.js

index d88e698..a98fdb4 100644 (file)
@@ -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);
             }