[wp-trac] [WordPress Trac] #22638: Investigate IE8 caret positioning when inserting into the editor

WordPress Trac noreply at wordpress.org
Fri Nov 30 01:39:14 UTC 2012


#22638: Investigate IE8 caret positioning when inserting into the editor
--------------------------+-----------------------
 Reporter:  nacin         |       Owner:  azaozz
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  3.5
Component:  TinyMCE       |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+-----------------------

Comment (by azaozz):

 IE does not keep the caret position when the editor iframe gets blurred
 (all other browsers do).

 If the user clicks on the Add Media button we
 [http://core.trac.wordpress.org/browser/trunk/wp-includes/js/media-
 editor.js#L522 capture] the caret position and later
 [http://core.trac.wordpress.org/browser/trunk/wp-admin/js/media-
 upload.js#L23 restore] it before inserting any content. For previous
 versions of TinyMCE this code needed to call `editor.focus()` which
 doesn't seem needed any more (but doesn't hurt to still have it there).

 However if the user clicks outside of the editor and then clicks on the
 Add Media button, the caret position is lost and anything inserted is put
 at the top of the content. This is not a regression, it has always been
 like that for IE.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22638#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list