Ticket #4111: 4111_2.patch

File 4111_2.patch, 1.8 KB (added by Garry Yao, 15 years ago)
  • _source/plugins/styles/plugin.js

     
    315315                // Probably the document end is reached, we need a marker node.
    316316                if ( !lastNode )
    317317                {
    318                                 lastNode = document.createText( '' );
     318                                var marker;
     319                                lastNode = marker = document.createText( '' );
    319320                                lastNode.insertAfter( range.endContainer );
    320321                }
    321322                // The detection algorithm below skips the contents inside bookmark nodes, so
     
    336337                        // simpler.
    337338                        if ( !lastNode )
    338339                        {
    339                                 lastNode = document.createText( '' );
     340                                lastNode = marker = document.createText( '' );
    340341                                lastNode.insertAfter( firstNode );
    341342                        }
    342343                }
     
    497498                        }
    498499                }
    499500
    500 //              this._FixBookmarkStart( startNode );
    501 
     501                // Remove the temporary marking node.(#4111)
     502                marker && marker.remove();
    502503                range.moveToBookmark( bookmark );
    503504        }
    504505
  • CHANGES.html

     
    185185                <li><a href="http://dev.fckeditor.net/ticket/4075">#4075</a> : [IE6/7]Fixed apply custom inline style with "class" attribute failed.</li>
    186186                <li><a href="http://dev.fckeditor.net/ticket/4087">#4087</a> : [Firefox]Fixed extra blocks created on create list when full document selected.</li>
    187187                <li><a href="http://dev.fckeditor.net/ticket/4097">#4097</a> : No undo/redo support for fontColor and backgroundColor buttons.</li>
     188                <li><a href="http://dev.fckeditor.net/ticket/4111">#4111</a> : Fixed apply block style after inline style applied on full document error.</li>
    188189        </ul>
    189190        <h3>
    190191                CKEditor 3.0 RC</h3>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy