improve default styling for node views

This commit is contained in:
Philipp Kühn
2020-10-30 16:06:24 +01:00
parent e5e47aaa48
commit b99cdcdb6f

View File

@@ -9,6 +9,14 @@ const style = `.ProseMirror {
font-variant-ligatures: none;
}
.ProseMirror [contenteditable="false"] {
white-space: normal;
}
.ProseMirror [contenteditable="false"] [contenteditable="true"] {
white-space: pre-wrap;
}
.ProseMirror pre {
white-space: pre-wrap;
}