+ item.element.copyAttributes( currentListItem, { type:1, value:1 } );\r
+ var itemDir = item.element.getDirection() || dir;\r
+ itemDir &&\r
+ currentListItem.setAttribute( 'dir', itemDir );\r
+\r
+ // There might be a case where there are no attributes in the element after all\r
+ // (i.e. when "type" or "value" are the only attributes set). In this case, if enterMode = BR,\r
+ // the current item should be a fragment.\r
+ if ( !dir && paragraphMode == CKEDITOR.ENTER_BR && !currentListItem.hasAttributes() )\r
+ currentListItem = new CKEDITOR.dom.documentFragment( doc );\r