X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fcore%2Fhtmlparser%2Ffragment.js;h=7912569d05a86e5740713b79cc4238acd5dd152e;hb=9afde8772159bd3436f1f5b7862960307710ae5a;hp=d31b0508d787e00a331a59cf5c6e9f0214da45a1;hpb=055b6b0792ce7dc53d47af606b367c04b927c2ab;p=ckeditor.git diff --git a/_source/core/htmlparser/fragment.js b/_source/core/htmlparser/fragment.js index d31b050..7912569 100644 --- a/_source/core/htmlparser/fragment.js +++ b/_source/core/htmlparser/fragment.js @@ -125,7 +125,7 @@ CKEDITOR.htmlParser.fragment = function() var elementName, realElementName; if ( element.attributes && ( realElementName = - element.attributes[ '_cke_real_element_type' ] ) ) + element.attributes[ 'data-cke-real-element-type' ] ) ) elementName = realElementName; else elementName = element.name; @@ -237,6 +237,12 @@ CKEDITOR.htmlParser.fragment = function() { addElement( currentNode, currentNode.parent ); } + else if ( tagName in CKEDITOR.dtd.$listItem ) + { + parser.onTagOpen( 'ul', {} ); + addPoint = currentNode; + reApply = true; + } else { if ( nonBreakingBlocks[ currentName ] ) @@ -386,6 +392,7 @@ CKEDITOR.htmlParser.fragment = function() parser.onComment = function( comment ) { + checkPending(); currentNode.add( new CKEDITOR.htmlParser.comment( comment ) ); };