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