From: Aleksander Ɓukasz Date: Mon, 9 Dec 2013 08:49:45 +0000 (+0100) Subject: editor: fixing invalid call to util function X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/17eb666e183336a3162a15017e4b951f4debe080?ds=sidebyside;hp=5b8c5ec57dcfd98cf14f98b54f84e6bb55dec23d editor: fixing invalid call to util function --- diff --git a/src/editor/modules/documentCanvas/commands.js b/src/editor/modules/documentCanvas/commands.js index b38c720..19c052c 100644 --- a/src/editor/modules/documentCanvas/commands.js +++ b/src/editor/modules/documentCanvas/commands.js @@ -210,13 +210,13 @@ commands.register('take-away-node', function(canvas) { canvas.setCurrentElement(element, {caretTo: position.offset}); } else { if(elementIsFirstChild) { - canvas.setCurrentElement(findCanvasElement(range.element1), {caretTo: 'end'}); + canvas.setCurrentElement(utils.findCanvasElement(range.element1), {caretTo: 'end'}); } else { - canvas.setCurrentElement(findCanvasElement(range.element2), {caretTo: 'end'}); + canvas.setCurrentElement(utils.findCanvasElement(range.element2), {caretTo: 'end'}); } } } else { - canvas.setCurrentElement(findCanvasElement(range.element1), {caretTo: 'start'}); + canvas.setCurrentElement(utils.findCanvasElement(range.element1), {caretTo: 'start'}); } });