mirror of
https://github.com/docmost/docmost.git
synced 2026-07-24 23:52:50 +10:00
feat: collab hocuspocus v4 upgrade (#2351)
* WIP 1 * complete v4 migration * add flushDelay * feat: multiplexing * fix: survive hocuspocus v4 message timeout * fix: searchTerm type error
This commit is contained in:
@@ -422,6 +422,8 @@ export const SearchAndReplace = Extension.create<
|
||||
state: {
|
||||
init: () => DecorationSet.empty,
|
||||
apply({ doc, docChanged }, oldState) {
|
||||
const storage = editor.storage.searchAndReplace;
|
||||
if (!storage) return oldState;
|
||||
const {
|
||||
searchTerm,
|
||||
lastSearchTerm,
|
||||
@@ -429,7 +431,7 @@ export const SearchAndReplace = Extension.create<
|
||||
lastCaseSensitive,
|
||||
resultIndex,
|
||||
lastResultIndex,
|
||||
} = editor.storage.searchAndReplace;
|
||||
} = storage;
|
||||
|
||||
if (
|
||||
!docChanged &&
|
||||
|
||||
Reference in New Issue
Block a user