Fixed spaces not rendered in FF issue

This commit is contained in:
Peter Zimon 2022-07-08 12:19:06 +02:00
parent d7df229927
commit f1248435ba
2 changed files with 8 additions and 0 deletions

View File

@ -46,6 +46,11 @@ body {
color: rgb(212 212 212 / var(--tw-text-opacity)); color: rgb(212 212 212 / var(--tw-text-opacity));
} }
.ProseMirror * {
white-space: pre-wrap;
word-wrap: break-word;
}
[contenteditable]:focus { [contenteditable]:focus {
outline: 0px solid transparent; outline: 0px solid transparent;
} }

View File

@ -25,6 +25,9 @@ export function getEditorConfig({placeholder, autofocus = false, content = ''})
attributes: { attributes: {
class: `gh-comment-content focus:outline-0` class: `gh-comment-content focus:outline-0`
} }
},
parseOptions: {
preserveWhitespace: 'full'
} }
}; };
} }