激活CKEditor时如何在HTML5文本区域中显示占位符属性? [英] How to display the placeholder attribute in HTML5 textarea when CKEditor is activated?

查看:147
本文介绍了激活CKEditor时如何在HTML5文本区域中显示占位符属性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在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?

推荐答案

您可以使用新版本的configHelper插件:

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆