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

Keep placeholder for empty heading #4122

Open
Alvol opened this issue Apr 18, 2024 · 2 comments
Open

Keep placeholder for empty heading #4122

Alvol opened this issue Apr 18, 2024 · 2 comments

Comments

@Alvol
Copy link

Alvol commented Apr 18, 2024

After text format changed from normal to heading placeholder is removed from empty editor
Creating new issue, since #2968 is not fixed in quill 2.0

Steps for Reproduction

  1. Visit quill playground
  2. Change format from Normal to Heading 1 or Heading 2

Expected behavior:
Placeholder should we visible, with heading format applied

Actual behavior:
No placeholder

Platforms:

Windows 10, Chrome 124, Firefox 126

Version:

2.0.0

@luin
Copy link
Member

luin commented Apr 19, 2024

Before Quill implements this, you can achieve a similar behavior via pure CSS (Example). You have to tweak the style though e.g. increase the placeholder font size if the current format is heading.

@Alvol
Copy link
Author

Alvol commented Apr 22, 2024

@luin yes, thanks for you suggestion. I'm just not sure it's good idea for me to write custom definition of empty text, base on quill inner structure. But, of course, as a workaround it should do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants