[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 17:55:20 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 azaozz):

 Hi @isabisa, thanks for closing the duplicate ticket and for finding where
 this is breaking.

 Can reproduce too. Happens only in (new) Chrome. Seems to be a change of
 behaviour there. Also happens when the top wpView is selected and the user
 clicks on the bottom one. The gallery previews are non-editable "blocks"
 inside the contentEditable iframe body. Seems Chrome changed the way the
 focus "flows" between editable and non-editable elements.

 Welcome to the wondrous world of contentEditable! :)

 That particular line comes from the
 [https://core.trac.wordpress.org/changeset/27582 original code of wpView],
 in WordPress 3.9. Think it was a workaround for a selection inconsistency
 at the time and is not needed any more, after all the changes to the
 surrounding code. Removing it will need more testing in all possible
 browsers, from IE9+ :)

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


More information about the wp-trac mailing list