Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #41900


Ignore:
Timestamp:
09/17/2017 04:21:53 AM (7 years ago)
Author:
westonruter
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #41900

    • Property Summary changed from Code Editor: Cursor jumps to end of file upon focus in the "contenteditable" inputStyle for CodeMirror to Code Editor: Cursor jumps to end of file upon focus in the "contenteditable" inputStyle for CodeMirror in Additional CSS
  • Ticket #41900 – Description

    initial v1  
    11In the editor which appears in the Customizer for the Additional CSS feature, when you click on the editor to focus and set the cursor on a given line, it will focus but then put the cursor at the end of the editor without scrolling to that position. Sometimes it will even add the active-line style to where you clicked, but the cursor is at the bottom. Every time you blur the editor an then focus back into the editor, the cursor will get moved to the end of the file.
     2
     3Of note, this issue can be observed exclusively in the editor for Additional CSS in the Customizer. It is not present on the theme/plugin editors. It is not even present for the code editor in the Custom HTML widget //in the Customizer// either. There seems to be something specifically about the Additional CSS editor.
    24
    35This issue appears when CodeMirror is configured with a 'contenteditable' `inputStyle`, which it is by default in core for the sake of a11y. Per the CodeMirror [https://codemirror.net/doc/manual.html#option_inputStyle docs] on `inputStyle`: