How to override the placeholder text color tinyMsc 6? #372
-
Hi, I am new to TinyMce editor. I have integrated the editor with the default code snippet, provided on tinymce website. I want to override the placeholder color coming from the theme. I have given the css in content_css. Like below
But this doesn't have the desired effect. How to go about it? I am using -
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
There is an option in tinymce for that: Set it in the <Editor
init={{
placeholder: "This is a placeholder."
}}
/> |
Beta Was this translation helpful? Give feedback.
There is an option in tinymce for that:
https://www.tiny.cloud/docs/tinymce/6/editor-important-options/#adding-placeholder-content-to-the-editor
Set it in the
init
prop:https://codesandbox.io/s/placeholder-3k8xnk?file=/src/index.js