[wp-trac] [WordPress Trac] #28322: wpview: focus problem in Chrome making impossible to edit a visual shortcode

WordPress Trac noreply at wordpress.org
Wed May 21 08:58:28 UTC 2014


#28322: wpview: focus problem in Chrome making impossible to edit a visual
shortcode
--------------------------+-----------------------------
 Reporter:  bduclos       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  TinyMCE       |    Version:  3.9.1
 Severity:  normal        |   Keywords:
  Focuses:  javascript    |
--------------------------+-----------------------------
 To reproduce, create a gallery (with nothing before), add a very long text
 after it and create another gallery immediately after it.

 If you try to select the second gallery to edit or remove it, it returns
 you at the top of the editor making it impossible to edit or remove the
 gallery.

 This issue only happens in Chrome. Line 93: editor.getBody().focus();
 in the wpview/plugin.js seems to be the issue. (Removing this line solves
 the problem)

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28322>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list