Skip to content

Commit

Permalink
fix: integration with collaboration plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
niko-ng authored and enpitsuLin committed Aug 6, 2024
1 parent a4812f2 commit 881e7f2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/plugin-split-editing/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ export const splitEditingProsePlugin = $prose((ctx) => {

editorView.dispatch = (tr) => {
editorView.updateState(editorView.state.apply(tr))

if (tr.getMeta('addToHistory') != false && tr.docChanged) {
if ((tr.getMeta('addToHistory') != false || tr.getMeta('y-sync$')) && tr.docChanged) {
const editor = ctx.get(editorCtx)
const content = editor.action(getMarkdown())
onEditorInput(content)
Expand Down

0 comments on commit 881e7f2

Please sign in to comment.