rename removeMarks to unsetMarks
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user