// Creates a new list item after the current selection's list item parent
functioncreateNewLi(ed,e){
if(isEnterWithoutShift(e)&&isEndOfListItem()){
varnode=ed.selection.getNode();
varli=ed.dom.create("li");
varparentLi=ed.dom.getParent(node,'li');
ed.dom.insertAfter(li,parentLi);
// Move caret to new list element.
if(tinymce.isIE6||tinymce.isIE7||tinyMCE.isIE8){
// Removed this line since it would create an odd < > tag and placing the caret inside an empty LI is handled and should be handled by the selection logic
//li.appendChild(ed.dom.create(" ")); // IE needs an element within the bullet point
// fix the cursor position to ensure it is correct in IE
functionsetCursorPositionToOriginalLi(li){
varlist=ed.dom.getParent(li,'ol,ul');
if(list!=null){
varlastLi=list.lastChild;
// Removed this line since IE9 would report an DOM character error and placing the caret inside an empty LI is handled and should be handled by the selection logic