Ticket #5558: 5558.patch

File 5558.patch, 693 bytes (added by Sa'ar Zac Elias, 14 years ago)
  • _source/plugins/wysiwygarea/plugin.js

     
    4747                        else
    4848                                this.document.$.execCommand( 'inserthtml', false, data );
    4949
     50                        if ( CKEDITOR.env.webkit )
     51                        {
     52                                this.document.$.execCommand( 'inserthtml', false, '<span id="cke_paste_marker" cke_temp="1"></span>' );
     53                                var marker = this.document.getById( 'cke_paste_marker' );
     54                                marker.scrollIntoView();
     55                                marker.remove();
     56                        }
     57
    5058                        CKEDITOR.tools.setTimeout( function()
    5159                                {
    5260                                        this.fire( 'saveSnapshot' );
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy