rename package folders
This commit is contained in:
13
packages/core/src/commands/clearContent.ts
Normal file
13
packages/core/src/commands/clearContent.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { Editor } from '../Editor'
|
||||
import { TextSelection } from 'prosemirror-state'
|
||||
|
||||
declare module '../Editor' {
|
||||
interface Editor {
|
||||
clearContent(emitUpdate?: Boolean): Editor,
|
||||
}
|
||||
}
|
||||
|
||||
export default function clearContent(next: Function, editor: Editor, emitUpdate = false): void {
|
||||
editor.setContent('', emitUpdate)
|
||||
next()
|
||||
}
|
||||
Reference in New Issue
Block a user