} else if(!cursor.isSelecting()) {
var nodeToUnwrap = cursor.getPosition().element.data('wlxmlNode'),
parentNode = nodeToUnwrap.unwrap();
} else if(!cursor.isSelecting()) {
var nodeToUnwrap = cursor.getPosition().element.data('wlxmlNode'),
parentNode = nodeToUnwrap.unwrap();
canvas.setCurrentElement(element, {caretTo: position.offset});
} else {
if(elementIsFirstChild) {
canvas.setCurrentElement(element, {caretTo: position.offset});
} else {
if(elementIsFirstChild) {