feat: add isChangeOrigin helper method
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
import { ySyncPluginKey } from 'y-prosemirror'
|
||||
import { Transaction } from 'prosemirror-state'
|
||||
|
||||
export function isChangeOrigin(transaction: Transaction): boolean {
|
||||
return !!transaction.getMeta(ySyncPluginKey)
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
import { Collaboration } from './collaboration'
|
||||
|
||||
export * from './collaboration'
|
||||
export * from './helpers/isChangeOrigin'
|
||||
|
||||
export default Collaboration
|
||||
|
||||
Reference in New Issue
Block a user