Changes between Initial Version and Version 1 of Ticket #41900
- Timestamp:
- 09/17/2017 04:21:53 AM (8 years ago)
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
toCode Editor: Cursor jumps to end of file upon focus in the "contenteditable" inputStyle for CodeMirror in Additional CSS
-
Property
Summary
changed from
-
Ticket #41900 – Description
initial v1 1 1 In 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 3 Of 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. 2 4 3 5 This 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`: