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

fixed empty content handling causing formatting issues with compositionend #352

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

Conversation

haemie
Copy link

@haemie haemie commented Mar 13, 2024

On Android I was having issues using lists, where deleting all text from the content and then typing was causing paragraphStatus to be permanently stuck at 1. This made the editor add extra divs on compositionend, resulting in new list items getting wrapped in a div in a separate list, causing extra space between list items, and li inside ol to be stuck at 1.

With this fix, the editor will detect when the content is empty/ user is typing directly into the content element, and format it accordingly. This also preserves paragraphStatus functionality.

@josejimenezbuild
Copy link

Are you able to merge?

@josejimenezbuild
Copy link

How can merge this PR?

@haemie
Copy link
Author

haemie commented May 8, 2024

This repo hasn't been updated in over a year so I'm not sure 😅 @stulip could you check this pr?

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