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

fix: add "holes" to marks #468

Merged
merged 1 commit into from
Feb 1, 2025

Conversation

Sec-ant
Copy link
Contributor

@Sec-ant Sec-ant commented Feb 1, 2025

While using this library together with handlewithcarecollective/react-prosemirror, I noticed the selected content would be removed from the view if I toggle the marks. I took a look into the schema and found that no holes are defined in the toDOM method of these marks. This PR fixed them.

One thing I didn't look into further is that this library works well with the nytimes/react-prosemirror and I'm not sure about why.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 13086239017

Details

  • 4 of 5 (80.0%) changed or added relevant lines in 5 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 81.733%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/syntax-extensions/LinkExtension.ts 0 1 0.0%
Totals Coverage Status
Change from base Build 12993728233: 0.0%
Covered Lines: 349
Relevant Lines: 427

💛 - Coveralls

Copy link
Owner

@marekdedic marekdedic left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

@marekdedic marekdedic merged commit eb80525 into marekdedic:master Feb 1, 2025
6 of 7 checks passed
@Sec-ant Sec-ant deleted the fix/holes-in-marks branch February 1, 2025 08:29
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