Frank W
Frank W

Reputation: 308

How to display the placeholder attribute in HTML5 textarea when CKEditor is activated?

I have a textarea in a HTML5 website with a proper placeholder="Sample text" attribute. It is displaying nicely until I add RichText support through CKEditor. The CKEditor GUI is recreating the textarea and is not displaying the placeholder text inside. Is there a way to display placeholders in CKEditor or switch some configuration options?

Upvotes: 3

Views: 5901

Answers (1)

AlfonsoML
AlfonsoML

Reputation: 12690

You can use the new version of configHelper plugin: http://alfonsoml.blogspot.com.es/2012/04/placeholder-text-in-ckeditor.html it will use automatically the placeholder attribute of your textarea

Upvotes: 2

Related Questions