rename removeMarks to unsetMarks

This commit is contained in:
Philipp Kühn
2020-11-18 17:43:59 +01:00
parent 2c5885c026
commit d075d5c425
8 changed files with 11 additions and 12 deletions

View File

@@ -3,7 +3,7 @@ import { Command } from '../types'
/**
* Remove all marks in the current selection.
*/
export const removeMarks = (): Command => ({ tr, state, dispatch }) => {
export const unsetMarks = (): Command => ({ tr, state, dispatch }) => {
const { selection } = tr
const { from, to, empty } = selection