mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-28 07:40:13 +08:00
fix markinputrule
This commit is contained in:
parent
b7ae78a95f
commit
f6b8c92e5b
@ -51,12 +51,12 @@ export default function (regexp: RegExp, markType: MarkType, getAttributes?: Fun
|
||||
}
|
||||
|
||||
markEnd = start + startSpaces + captureGroup.length
|
||||
|
||||
tr.addMark(start + startSpaces, markEnd, markType.create(attributes))
|
||||
|
||||
tr.removeStoredMark(markType)
|
||||
}
|
||||
|
||||
tr.addMark(start, markEnd, markType.create(attributes))
|
||||
|
||||
tr.removeStoredMark(markType)
|
||||
|
||||
return tr
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user