tiptap/packages/tiptap-commands/src/commands/removeMark.js
2018-11-08 22:03:10 +01:00

7 lines
169 B
JavaScript

export default function (type) {
return (state, dispatch) => {
const { from, to } = state.selection
return dispatch(state.tr.removeMark(from, to, type))
}
}