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

When close child size is 0, close() returned without changing #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

howyi
Copy link

@howyi howyi commented Jan 14, 2021

Related issue: outline/rich-markdown-editor#233
https://github.com/outline/rich-markdown-editor/pull/252/files

3915231
After this commit(> 1.2.5), "setBlockType ()" of "prosemirror-command" has a problem.

This is a fix for the problem that Node's Wrap is not working as shown in the image.
Specifically, the line you intended to change is deleted, and the line below is changed.

current

fixed(in this commit)

@marijnh
Copy link
Member

marijnh commented Jan 14, 2021

Would it be possible to add a test that fails with the current code but passes with this patch in test/test-trans.js?

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.

2 participants