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

Prevent tiptap from creating duplicate style tags when injecting css #1399

Merged

Conversation

mmachatschek
Copy link
Contributor

Code sandbox example here

When using multiple Editor instances on the same page with injectCSS (which defaults to true), you get duplicate style that apply the same styles in the head.

This prevents those duplicate entries

image

@philippkuehn philippkuehn merged commit 4175838 into ueberdosis:main May 31, 2021
@philippkuehn
Copy link
Contributor

Thanks!

@mmachatschek mmachatschek deleted the issue/fix-duplicate-style-tags branch May 31, 2021 17:30
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