From 769d8fb5bf9837023ae693a2ef0962d73fdee1de Mon Sep 17 00:00:00 2001 From: Leonard Martin Date: Fri, 16 Sep 2022 10:41:46 +0100 Subject: [PATCH] Fix jumping cursor bug in Chrome 105 Override the `-webkit-user-modify: read-write-plaintext-only` style that is added by slate to the editor element that causes a cursor jumping bug in Chrome 105. Details at https://github.com/ianstormtaylor/slate/issues/5110 --- assets/scss/_editor.scss | 3 +++ 1 file changed, 3 insertions(+) diff --git a/assets/scss/_editor.scss b/assets/scss/_editor.scss index c87c282c..27bf0a78 100644 --- a/assets/scss/_editor.scss +++ b/assets/scss/_editor.scss @@ -28,6 +28,9 @@ } &:not(.readonly) { + [data-slate-editor="true"] { + -webkit-user-modify: read-write!important; + } .image-wrapper:hover .image-overlay { display: block; }