0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Prevent double text selection in the editor

closes https://github.com/TryGhost/Ghost/issues/9356
- it was possible to start a selection from outside of CodeMirror's control, this was confusing because text appeared to be selected but wasn't
- disable user selection on the outermost CodeMirror wrapper so that the selection behaves as it does with a normal textarea where the selection needs to start from inside the content area
This commit is contained in:
Kevin Ansfield 2018-01-02 14:53:35 +00:00
parent bdab644ad5
commit c885b960b6

View file

@ -450,6 +450,8 @@
overflow: visible;
padding: 0;
background: transparent;
/* Prevent confusing select behaviour, see https://github.com/TryGhost/Ghost/issues/9356 */
user-select: none;
}
.gh-editor .CodeMirror-cursor {