Skip to content

Commit e2811e8

Browse files
Cursor jumps to end of editorComponent text field
1 parent e2bd85c commit e2811e8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/cms/cms.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,15 @@ import CMS from 'netlify-cms-app';
22
import cloudinary from 'netlify-cms-media-library-cloudinary';
33

44
CMS.registerMediaLibrary(cloudinary);
5+
6+
const injectCustomStyle = () => {
7+
const style = document.createElement('style');
8+
style.innerHTML = `
9+
div[data-slate-editor] {
10+
-webkit-user-modify: read-write !important;
11+
}
12+
`;
13+
document.head.appendChild(style);
14+
};
15+
16+
injectCustomStyle();

0 commit comments

Comments
 (0)