move commands again
This commit is contained in:
9
packages/core/src/commands/scrollIntoView.ts
Normal file
9
packages/core/src/commands/scrollIntoView.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Command } from '../Editor'
|
||||
|
||||
export default (): Command => ({ tr, dispatch }) => {
|
||||
if (dispatch) {
|
||||
tr.scrollIntoView()
|
||||
}
|
||||
|
||||
return true
|
||||
}
|
||||
Reference in New Issue
Block a user