ueberdosis / tiptap

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

[PRO]: Why can't the `@tiptap-pro/extension-invisible-characters` package and the `@tiptap/extension-placeholder` package coexist? #5607

Open xiangshu233 opened 1 month ago

xiangshu233 commented 1 month ago

Affected Packages

"@tiptap/extension-placeholder": "^2.4.0", "@tiptap-pro/extension-invisible-characters": "^2.11.2",

Version(s)

2.11.2

Description of the Bug

When they exist at the same time, they will overlap as shown in the screenshot. I tried to change the CSS but it didn't work. image image

In addition, I hope to add a configuration item of showOnlyWhenEditable to InvisibleCharacters extensions, which is the same as Placeholder, because sometimes it is not necessary to display in read-only mode. thanks :)

Browser Used

Chrome

Code Example (Preferred)

null

Expected Behavior

image I want the Placeholder extensions to show up after the InvisibleCharacters

Additional Context (Optional)

image image

Dependency Updates

nperez0111 commented 1 month ago

They can it just depends on the css you use to target the elements.