Make WordPress Core

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)

#1 @iseulde
12 years ago

  • Component EditorTinyMCE
  • Focuses javascript added
  • Keywords reporter-feedback added

Still a problem after the 4.0 and 4.1 release?

#2 @bduclos
12 years ago

  • Keywords close added; reporter-feedback removed

Not a problem anymore in 4.1

#3 @helen
12 years ago

  • Milestone Awaiting Review
  • Resolutionworksforme
  • Status newclosed

Thanks for checking!

Note: See TracTickets for help on using tickets.