Make WordPress Core

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's profile 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)

#1 @iseulde
10 years ago

  • Component changed from Editor to TinyMCE
  • Focuses javascript added
  • Keywords reporter-feedback added

Still a problem after the 4.0 and 4.1 release?

#2 @bduclos
10 years ago

  • Keywords close added; reporter-feedback removed

Not a problem anymore in 4.1

#3 @helen
10 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed

Thanks for checking!

Note: See TracTickets for help on using tickets.