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

WordPress Trac noreply at wordpress.org
Thu May 12 18:22:59 UTC 2016


#28322: wpview: focus problem in Chrome making impossible to edit a visual
shortcode
--------------------------+-----------------------------------------
 Reporter:  bduclos       |       Owner:
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  TinyMCE       |     Version:  3.9
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  javascript, administration
--------------------------+-----------------------------------------

Comment (by adamsilverstein):

 @azaozz thanks for confirming, your assistance here is greatly
 appreciated!

 I did some more testing but didn’t find a good solution. it seems like
 Chrome is ignoring the call to `select` the element we create for the view
 - the element is there, and targeted correctly, but the call to focus
 fails. In addition, the initial call to focus the editor scrolls to the
 top of the editor - this doesn't happen in firefox.

 I will do more testing with that line removed across browsers via
 BrowserStack.

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


More information about the wp-trac mailing list