refactor: remove isEditable from node views, remove viewUpdate event
This commit is contained in:
@@ -19,9 +19,6 @@ const editor = new Editor({
|
||||
onSelectionUpdate({ editor }) {
|
||||
// The selection has changed.
|
||||
},
|
||||
onViewUpdate({ editor }) {
|
||||
// The view has changed.
|
||||
},
|
||||
onTransaction({ editor, transaction }) {
|
||||
// The editor state has changed.
|
||||
},
|
||||
@@ -57,10 +54,6 @@ editor.on('selectionUpdate', ({ editor }) => {
|
||||
// The selection has changed.
|
||||
}
|
||||
|
||||
editor.on('viewUpdate', ({ editor }) => {
|
||||
// The view has changed.
|
||||
}
|
||||
|
||||
editor.on('transaction', ({ editor, transaction }) => {
|
||||
// The editor state has changed.
|
||||
}
|
||||
@@ -113,9 +106,6 @@ const CustomExtension = Extension.create({
|
||||
onSelectionUpdate({ editor }) {
|
||||
// The selection has changed.
|
||||
},
|
||||
onViewUpdate({ editor }) {
|
||||
// The view has changed.
|
||||
},
|
||||
onTransaction({ editor, transaction }) {
|
||||
// The editor state has changed.
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user