[wp-trac] [WordPress Trac] #29414: Cursor position when switching between Visual and Text mode in IE

WordPress Trac noreply at wordpress.org
Thu Aug 28 10:10:05 UTC 2014


#29414: Cursor position when switching between Visual and Text mode in IE
--------------------------+-----------------------------
 Reporter:  bduclos       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Editor        |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 When switching between Visual and Text mode in IE, if a [gallery] is the
 first element of the body, the cursor sometimes appears inside the gallery
 view letting the user type inside the view.
 See: [http://i.imgur.com/xeEpj8E.jpg]

 One fix for that could be to set the cursor before the view on 'show'
 event like it's done on 'focus' line 580 ( in wp-
 includes/js/tinymce/plugins/wpview/plugin.js):


 {{{
 editor.on( 'show', function() {
         var view;
         if (  view = getView( editor.getBody().firstChild )  ) {
                 setViewCursor( true, view );
         }
 });
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29414>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list