web: fix font family not applied when set on editor

This commit is contained in:
ammarahm-ed
2023-04-08 01:14:33 +05:00
parent 300a104949
commit 9cdc502ce5
6 changed files with 24 additions and 29 deletions

View File

@@ -39,7 +39,7 @@ declare module "@tiptap/core" {
}
}
const FONTS: Record<string, string> = {
export const FONTS: Record<string, string> = {
monospace: getFontConfig().fonts.monospace,
"sans-serif": getFontConfig().fonts.body,
serif: `Noto Serif, Times New Roman, serif`

View File

@@ -1,7 +1,13 @@
.ProseMirror span * {
font-family: inherit;
}
.ProseMirror {
font-family: inherit;
}
.ProseMirror p.is-editor-empty:first-child::before {
color: var(--placeholder);
content: attr(data-placeholder);
@@ -87,6 +93,7 @@
.ProseMirror p {
margin-bottom: 0px;
font-family: inherit;
}
.ProseMirror > p[data-spacing="double"] {