Ticket #8870: 8870.patch

File 8870.patch, 1.3 KB (added by Garry Yao, 12 years ago)
  • _source/core/htmlparser/fragment.js

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    194194
    195195                        target.add( element );
    196196
     197                        if ( element.name == 'pre' )
     198                                inPre = false;
     199
     200                        if ( element.name == 'textarea' )
     201                                inTextarea = false;
     202
     203
    197204                        if ( element.returnPoint )
    198205                        {
    199206                                currentNode = element.returnPoint;
     
    360367
    361368                                currentNode = candidate;
    362369
    363                                 if ( currentNode.name == 'pre' )
    364                                         inPre = false;
    365 
    366                                 if ( currentNode.name == 'textarea' )
    367                                         inTextarea = false;
    368 
    369370                                if ( candidate._.isBlockLike )
    370371                                        sendPendingBRs();
    371372
     
    399400                                                        || ( currentNode._.isBlockLike ?
    400401                                                                 CKEDITOR.dtd.div : CKEDITOR.dtd.span ) ) : rootDtd;
    401402
    402                         // Fix orphan text in list/table. (#8540)
    403                         if ( !currentDtd [ '#' ] && currentName in nonBreakingBlocks )
     403                        // Fix orphan text in list/table. (#8540) (#8870)
     404                        if ( !inTextarea &&
     405                                 !currentDtd [ '#' ] &&
     406                                 currentName in nonBreakingBlocks )
    404407                        {
    405408                                parser.onTagOpen( currentName in listBlocks ? 'li' :
    406409                                                                  currentName == 'dl' ? 'dd' :
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy