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 newline stripping via insertContent #4838

Merged
merged 3 commits into from
Jan 29, 2024
Merged

Conversation

bdbch
Copy link
Contributor

@bdbch bdbch commented Jan 29, 2024

Please describe your changes

This change will allow users to insert content with inline tags and spaces - previously those would've been stripped out by a change made in 2.1.16

How did you accomplish your changes

Extended the regex to check especially for new lines from tags

How have you tested your changes

Added two new tests

How can we verify your changes

Check tests or the local demo

Remarks

[add any additional remarks here]

Checklist

  • The changes are not breaking the editor
  • Added tests where possible
  • Followed the guidelines
  • Fixed linting issues

Related issues

@bdbch bdbch self-assigned this Jan 29, 2024
Copy link

netlify bot commented Jan 29, 2024

Deploy Preview for tiptap-embed ready!

Name Link
🔨 Latest commit 32e621b
🔍 Latest deploy log https://app.netlify.com/sites/tiptap-embed/deploys/65b77ff05a61d70008ef02c6
😎 Deploy Preview https://deploy-preview-4838--tiptap-embed.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@bdbch bdbch changed the title Fix/fix content insertion Fix newline stripping content insertion via insertContent Jan 29, 2024
@bdbch bdbch changed the title Fix newline stripping content insertion via insertContent Fix newline stripping via insertContent Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants