refactor(maintainment): set dependency versions for prosemirror and y… (#2904)
* refactor(maintainment): set dependency versions for prosemirror and yjs to fixed versions * refactor(docs): fix dependency versions in demos * chore: update package-lock.json * chore: update latest prosemirror packages
This commit is contained in:
@@ -190,7 +190,7 @@ export function pasteRulesPlugin(props: { editor: Editor, rules: PasteRule[] }):
|
||||
return false
|
||||
},
|
||||
|
||||
paste: (view, event) => {
|
||||
paste: (view, event: Event) => {
|
||||
const html = (event as ClipboardEvent).clipboardData?.getData('text/html')
|
||||
|
||||
isPastedFromProseMirror = !!html?.includes('data-pm-slice')
|
||||
|
||||
@@ -13,7 +13,7 @@ export const FocusEvents = Extension.create({
|
||||
key: new PluginKey('focusEvents'),
|
||||
props: {
|
||||
handleDOMEvents: {
|
||||
focus: (view, event) => {
|
||||
focus: (view, event: Event) => {
|
||||
editor.isFocused = true
|
||||
|
||||
const transaction = editor.state.tr
|
||||
@@ -24,7 +24,7 @@ export const FocusEvents = Extension.create({
|
||||
|
||||
return false
|
||||
},
|
||||
blur: (view, event) => {
|
||||
blur: (view, event: Event) => {
|
||||
editor.isFocused = false
|
||||
|
||||
const transaction = editor.state.tr
|
||||
|
||||
Reference in New Issue
Block a user