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

Unable to set whiteSpace style on NodeViewContent #36

Closed
EvitanRelta opened this issue Jun 15, 2022 · 0 comments
Closed

Unable to set whiteSpace style on NodeViewContent #36

EvitanRelta opened this issue Jun 15, 2022 · 0 comments
Assignees
Labels
bug Something isn't working tiptap Related to TipTap editor

Comments

@EvitanRelta
Copy link
Owner

EvitanRelta commented Jun 15, 2022

NodeViewContent and NodeViewWrapper overrides the whiteSpace style, as shown:

return value of NodeViewContent:
image

Which prevents us from changing the whiteSpace styling:

image

Rendered HTML:
image

Which forces our text in codeblocks to wrap instead of having a horizontal overflow scrollbar:

image

Expected:
image

I've already submitted an issue (ueberdosis/tiptap#2883) on the TipTap repo, and a pull request (ueberdosis/tiptap#2884) to fix it.
But for now, we'll likely have to temporarily patch it on our side.

@EvitanRelta EvitanRelta added bug Something isn't working tiptap Related to TipTap editor labels Jun 15, 2022
@EvitanRelta EvitanRelta self-assigned this Jun 16, 2022
EvitanRelta added a commit that referenced this issue Jun 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tiptap Related to TipTap editor
Projects
None yet
Development

No branches or pull requests

1 participant