fix: add missing ProseMirror styles

This commit is contained in:
Philipp Kühn
2021-08-20 21:11:39 +02:00
parent 17c33e0b23
commit 12602e77ef

View File

@@ -5,8 +5,10 @@ const style = `.ProseMirror {
.ProseMirror {
word-wrap: break-word;
white-space: pre-wrap;
white-space: break-spaces;
-webkit-font-variant-ligatures: none;
font-variant-ligatures: none;
font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */
}
.ProseMirror [contenteditable="false"] {
@@ -21,6 +23,12 @@ const style = `.ProseMirror {
white-space: pre-wrap;
}
img.ProseMirror-separator {
display: inline !important;
border: none !important;
margin: 0 !important;
}
.ProseMirror-gapcursor {
display: none;
pointer-events: none;