Keep placeholder for empty heading
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
- Visit quill playground
- Change format from
NormaltoHeading 1orHeading 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
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.
@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.