Merge branch 'main' of github.com:ueberdosis/tiptap-next into main

This commit is contained in:
Hans Pagel
2021-02-08 16:10:04 +01:00
89 changed files with 417 additions and 73 deletions

View File

@@ -16,7 +16,7 @@ export default function (doc: Node): DecorationSet {
const color = match[0]
const index = match.index || 0
const from = position + index
const to = position + index + match[0].length
const to = from + color.length
const decoration = Decoration.inline(from, to, {
class: 'color',
style: `--color: ${color}`,