fix more linting issues
This commit is contained in:
@@ -14,9 +14,8 @@ declare module '../Editor' {
|
||||
export const removeMark: RemoveMarkCommand = typeOrName => ({ tr, state }) => {
|
||||
const { selection } = tr
|
||||
const type = getMarkType(typeOrName, state.schema)
|
||||
let {
|
||||
from, to, $from, empty,
|
||||
} = selection
|
||||
let { from, to } = selection
|
||||
const { $from, empty } = selection
|
||||
|
||||
if (empty) {
|
||||
const range = getMarkRange($from, type)
|
||||
|
||||
Reference in New Issue
Block a user