Opened 10 years ago
Closed 10 years ago
#29414 closed defect (bug) (worksforme)
Cursor position when switching between Visual and Text mode in IE
Reported by: | bduclos | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.0 |
Component: | TinyMCE | Keywords: | close |
Focuses: | javascript | Cc: |
Description
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 ); } });
Change History (3)
Note: See
TracTickets for help on using
tickets.
Still a problem after the 4.0 and 4.1 release?