Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Force undo manager to stop capture when pasting#19

Merged
dmonad merged 1 commit into
yjs:mainfrom
fcollonval:ft/isolate-paste
Nov 15, 2021
Merged

Force undo manager to stop capture when pasting#19
dmonad merged 1 commit into
yjs:mainfrom
fcollonval:ft/isolate-paste

Conversation

@fcollonval
Copy link
Copy Markdown
Contributor

This was raised in jupyterlab/jupyterlab#10928

The capture seems to be stopped before capturing the paste event. But the second stop capture statement is not working because I succeed to do undo's that removed characters typed after the paste change.

@krassowski
Copy link
Copy Markdown

krassowski commented Oct 7, 2021

Hi, what is the state of this PR? Looking forward to have undo as a separate undoable event, but not quite sure if more work is required or if this solves it for JupyterLab.

@fcollonval
Copy link
Copy Markdown
Contributor Author

cc @dmonad what do you think of this solution?

@dmonad
Copy link
Copy Markdown
Member

dmonad commented Nov 15, 2021

Thank you for the fix @fcollonval!

Sorry for the late merge. This is perfect. I'm going to publish a new release in a bit and open a PR to JupyterLab.

@dmonad dmonad merged commit fb0b5d3 into yjs:main Nov 15, 2021
@fcollonval fcollonval deleted the ft/isolate-paste branch November 16, 2021 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants