Ticket #6545: 6545.patch
File 6545.patch, 765 bytes (added by , 13 years ago) |
---|
-
_source/plugins/wysiwygarea/plugin.js
643 643 { 644 644 editor.document.getDocumentElement().focus(); 645 645 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 );655 646 } 656 647 } 657 648