react-quill icon indicating copy to clipboard operation
react-quill copied to clipboard

Placeholder color change in darkmode

Open opio007 opened this issue 3 years ago • 4 comments

How can I change the placeholder color to white in dark mode?

[Codesandbox Link]:

ReactQuill version

"react-quill": "^2.0.0-beta.4",

opio007 avatar Apr 02 '22 20:04 opio007

I am curious also how react-quill works in dark mode?

WenLonG12345 avatar Apr 21 '22 07:04 WenLonG12345

@opio007 @WenLonG12345 Did either of you determine a solution for changing placeholder color in dark mode? If so could you please share?

NickEmpetvee avatar Jul 29 '22 20:07 NickEmpetvee

you can set color by css .ql-editor.ql-blank:before

brightsider avatar Apr 04 '23 06:04 brightsider

I used the style inside the component to change the color to white if dark mode is activated like this: <ReactQuill style={{ width: "100%", height: "500px", color: _mode === 'dark' ? '#fff' : '#000'}} /> it affected only the text inside the editor but I am still trying to understand how to control the toolbar colors too.

ayoub3bidi avatar Jun 02 '23 08:06 ayoub3bidi