How to display the placeholder attribute in HTML5

2019-07-05 03:35发布

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?

1条回答
在下西门庆
2楼-- · 2019-07-05 03:43

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

查看更多
登录 后发表回答