refactoring

This commit is contained in:
Philipp Kühn 2021-09-08 12:04:02 +02:00
parent a5dca087ee
commit d3285e9308

View File

@ -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) {