mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-25 12:39:03 +08:00
refactoring
This commit is contained in:
parent
a5dca087ee
commit
d3285e9308
@ -34,7 +34,7 @@ export const unsetMark: RawCommands['unsetMark'] = (typeOrName, options = {}) =>
|
||||
|
||||
if (empty && extendEmptyMarkRange) {
|
||||
let { from, to } = selection
|
||||
const attrs = selection.$from.marks().find(mark => mark.type === type)?.attrs
|
||||
const attrs = $from.marks().find(mark => mark.type === type)?.attrs
|
||||
const range = getMarkRange($from, type, attrs)
|
||||
|
||||
if (range) {
|
||||
|
Loading…
Reference in New Issue
Block a user