Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

atom fix #126

Closed
wants to merge 1 commit into from
Closed

Conversation

YousefED
Copy link
Collaborator

This is a hardcoded fix for ueberdosis/tiptap#1448.

While working on the drag fix, I think this resolved some internal prosemirror issues. However, the other drag fix seems to work fine now.

I expect this code (maybe just the ignoreMutation + contentDOM part, and not the stopEvent), might resolve some other issues, but I don't want to merge it before we know exactly which cases it resolves

@YousefED YousefED requested a review from pvunderink June 10, 2021 16:19
@pvunderink
Copy link
Contributor

As I mentions in PR #125, this actually seems to fix another issue with DnD, so this definitely is doing something...

@YousefED
Copy link
Collaborator Author

As I mentions in PR #125, this actually seems to fix another issue with DnD, so this definitely is doing something...

@pvunderink I've opened #126 (comment) which is a partial copy of this PR. I think that should also fix the typecell drag issue you mentioned.

For the ignoreMutation part, my previous comment stays; I would expect it's necessary and think it could solve some things, but unless we know what, let's not merge yet

Copy link
Contributor

@pvunderink pvunderink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Overall I would say the editor behaviour in this branch feels stable (more stable than in #86).

I haven't found a concrete bug that is fixed by the ignoreMutation part, but if we need a custom NodeView for our typecell editor in the future we can revisit this when implementing the custom NodeView.

@YousefED
Copy link
Collaborator Author

Closing this as it should be handled by ueberdosis/tiptap#1448, and we didn't run into concrete breaking issues

@YousefED YousefED closed this Jun 15, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Jun 15, 2021
@Chong-Zhao Chong-Zhao deleted the typecell-tiptap-atom-fix branch June 22, 2021 15:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants