13 lines
206 B
TypeScript
13 lines
206 B
TypeScript
import { Command } from '../types'
|
|
|
|
/**
|
|
* Removes focus from the editor.
|
|
*/
|
|
export const blur = (): Command => ({ view }) => {
|
|
const element = view.dom as HTMLElement
|
|
|
|
element.blur()
|
|
|
|
return true
|
|
}
|