Ticket #6868: 6868.patch

File 6868.patch, 886 bytes (added by Garry Yao, 13 years ago)
  • _source/core/htmlparser/fragment.js

     
    118118                {
    119119                        target = target || currentNode || fragment;
    120120
    121                         // If the target is the fragment and this element can't go inside
     121                        // If the target is the fragment and this inline element can't go inside
    122122                        // body (if fixForBody).
    123123                        if ( fixForBody && !target.type )
    124124                        {
     
    129129                                        elementName = realElementName;
    130130                                else
    131131                                        elementName =  element.name;
    132                                 if ( elementName
    133                                                 && !( elementName in CKEDITOR.dtd.$body )
    134                                                 && !( elementName in CKEDITOR.dtd.$nonBodyContent )  )
     132
     133                                if ( elementName && elementName in CKEDITOR.dtd.$inline )
    135134                                {
    136135                                        var savedCurrent = currentNode;
    137136
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy