Make WordPress Core

Opened 7 years ago

Closed 7 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:


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
7 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
7 years ago

  • Keywords close added; reporter-feedback removed

Not a problem anymore in 4.1

#3 @helen
7 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.