[wp-trac] [WordPress Trac] #41900: Code Editor: Cursor jumps to end of file upon focus in the "contenteditable" inputStyle for CodeMirror in Additional CSS

WordPress Trac noreply at wordpress.org
Sat Sep 23 18:45:53 UTC 2017


#41900: Code Editor: Cursor jumps to end of file upon focus in the
"contenteditable" inputStyle for CodeMirror in Additional CSS
--------------------------+----------------------------
 Reporter:  westonruter   |       Owner:  westonruter
     Type:  defect (bug)  |      Status:  closed
 Priority:  high          |   Milestone:  4.9
Component:  Customize     |     Version:
 Severity:  normal        |  Resolution:  fixed
 Keywords:  needs-patch   |     Focuses:  accessibility
--------------------------+----------------------------
Changes (by westonruter):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"41582"]:
 {{{
 #!CommitTicketReference repository="" revision="41582"
 Customize: Remove unnecessary call to `refresh()` a CodeMirror instance
 upon `focus` in Code Editor control.

 This also fixes an issue with the cursor not being set in the expected
 location with an `inputStyle=contenteditable`.

 Props afercia.
 See #41897.
 Fixes #41900.
 }}}

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


More information about the wp-trac mailing list