+ element = position.element,
+ added;
+
+ if(Object.keys(cursor.getPosition()).length === 0) {
+ var currentElement = canvas.getCurrentNodeElement();
+ if(currentElement) {
+ canvas.wlxmlDocument.startTransaction();
+ added = currentElement.data('wlxmlNode').after({
+ tagName: currentElement.getWlxmlTag() || 'div',
+ attrs: {'class': currentElement.getWlxmlClass() || 'p'}
+ });
+ added.append({text:''});
+ canvas.wlxmlDocument.endTransaction();
+ canvas.setCurrentElement(utils.findCanvasElement(added), {caretTo: 'start'});
+ }
+ return;
+ }