fix variable style

pull/555/merge
Pete Matsyburka 7 days ago
parent 8e2e780a1a
commit 44db775b89

@ -28,7 +28,7 @@ tiptapStylesheet.replaceSync(
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 */
font-feature-settings: "liga" 0;
}
.ProseMirror [contenteditable="false"] {
@ -89,7 +89,7 @@ img.ProseMirror-separator {
.ProseMirror-focused .ProseMirror-gapcursor {
display: block;
}
.variable-highlight {
dynamic-variable {
background-color: #fef3c7;
}`)
@ -533,7 +533,7 @@ function buildDecorations (doc) {
const from = pos + match.index
const to = from + match[0].length
decorations.push(Decoration.inline(from, to, { class: 'variable-highlight' }))
decorations.push(Decoration.inline(from, to, { nodeName: 'dynamic-variable' }))
}
})

Loading…
Cancel
Save