diff --git a/packages/core/src/commands/unsetMark.ts b/packages/core/src/commands/unsetMark.ts index 6d18c31f..05d922be 100644 --- a/packages/core/src/commands/unsetMark.ts +++ b/packages/core/src/commands/unsetMark.ts @@ -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) {