Ticket #6545: 6545.patch

File 6545.patch, 765 bytes (added by Garry Yao, 13 years ago)
  • _source/plugins/wysiwygarea/plugin.js

     
    643643                                                                        {
    644644                                                                                editor.document.getDocumentElement().focus();
    645645                                                                                wasFocused = 1;
    646 
    647                                                                                 // Webkit does not scroll to the cursor position after first focus.
    648                                                                                 setTimeout(function()
    649                                                                                 {
    650                                                                                         doc.$.execCommand( 'inserthtml', false, '<span id="cke_focus_marker" cke_temp="1"></span>' );
    651                                                                                         var marker = doc.getById( 'cke_focus_marker' );
    652                                                                                         marker.scrollIntoView();
    653                                                                                         marker.remove();
    654                                                                                 }, 0 );
    655646                                                                        }
    656647                                                                }
    657648
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy