add core extensions
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
import { Command } from '../Editor'
|
||||
|
||||
type BlurCommand = () => Command
|
||||
|
||||
declare module '../Editor' {
|
||||
interface Commands {
|
||||
blur: BlurCommand,
|
||||
}
|
||||
}
|
||||
|
||||
export const blur: BlurCommand = () => ({ view }) => {
|
||||
const element = view.dom as HTMLElement
|
||||
|
||||
element.blur()
|
||||
|
||||
return true
|
||||
}
|
||||
Reference in New Issue
Block a user