【问题标题】:How to display the placeholder attribute in HTML5 textarea when CKEditor is activated?激活CKEditor时如何在HTML5 textarea中显示占位符属性?
【发布时间】:2012-04-26 12:53:20
【问题描述】:

我在 HTML5 网站中有一个 textarea,它具有适当的 placeholder="Sample text" 属性。在我通过 CKEditor 添加 RichText 支持之前,它显示得很好。 CKEditor GUI 正在重新创建文本区域,并且没有在其中显示占位符文本。 有没有办法在 CKEditor 中显示占位符或切换一些配置选项?

【问题讨论】:

    标签: html textarea ckeditor placeholder


    【解决方案1】:

    您可以使用新版本的 configHelper 插件:http://alfonsoml.blogspot.com.es/2012/04/placeholder-text-in-ckeditor.html 它会自动使用您的 textarea 的占位符属性

    【讨论】:

      猜你喜欢
      • 2023-04-10
      • 1970-01-01
      • 2012-11-25
      • 2015-07-19
      • 2018-10-30
      • 2012-04-28
      • 2015-01-29
      • 2015-06-27
      相关资源
      最近更新 更多