Opened 12 years ago
Closed 12 years ago
#29414 closed defect (bug) (worksforme)
Cursor position when switching between Visual and Text mode in IE
| Reported by: | bduclos | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | TinyMCE | Version: | 4.0 |
| Severity: | normal | Keywords: | close |
| Cc: | Focuses: | javascript |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Still a problem after the 4.0 and 4.1 release?