ueberdosis / tiptap

The headless rich text editor framework for web artisans.
https://tiptap.dev
MIT License
27.72k stars 2.3k forks source link

[Bug]: The first line of the center style copied from the word document does not take effect #5592

Open paddingC opened 2 months ago

paddingC commented 2 months ago

Affected Packages

react

Version(s)

2.0

Bug Description

The first line of the center style copied from the word document does not take effect. The first line is labeled text-align:center

https://github.com/user-attachments/assets/94ae35ca-1357-4968-92a0-ab449985732e

Browser Used

Chrome

Code Example URL

https://codesandbox.io/p/sandbox/tiptap-react-qidlsv?file=%2Fsrc%2FApp.js

Expected Behavior

Expect all styles to work

Additional Context (Optional)

No response

Dependency Updates

nperez0111 commented 2 months ago

This is a bug in prosemirror that was fixed recently. Update your deps

paddingC commented 2 months ago

This is a bug in prosemirror that was fixed recently. Update your deps

I updated it, but it didn't work. Can you tell me which package it was

paddingC commented 1 month ago

unsolved

nperez0111 commented 1 month ago

Should have been prosemirror-view. This can require regenerating your package-lock or just updating that dep specifically. I'll reopen for now, but I'm pretty sure that this is due to how prosemirror parses things not with anything Tiptap is doing on top of this