激活CKEditor时如何在HTML5文本区域中显示占位符属性? [英] How to display the placeholder attribute in HTML5 textarea when CKEditor is activated?
问题描述
我在HTML5网站中有一个textarea,带有正确的placeholder ="Sample text"属性.在我通过CKEditor添加RichText支持之前,它显示得很好. CKEditor GUI正在重新创建文本区域,并且未在其中显示占位符文本. 有没有办法在CKEditor中显示占位符或切换一些配置选项?
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?
推荐答案
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
这篇关于激活CKEditor时如何在HTML5文本区域中显示占位符属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!