如何在TinyMCE中添加占位符文本? [英] How do I add placeholder text to TinyMCE?

查看:914
本文介绍了如何在TinyMCE中添加占位符文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于标准文本区域,我使用placeholder="".我该如何扩展tinymce,使其也能以这种方式工作.

For standard textareas, I use placeholder="" . How can I extend tinymce so that it also works in this way.

与CKEditor类似: http://alfonsoml.blogspot.com.es/2012/04/placeholder-text-in-ckeditor.html

Similar to this for CKEditor: http://alfonsoml.blogspot.com.es/2012/04/placeholder-text-in-ckeditor.html

推荐答案

placeholder插件起作用了对我很好. 此插件为TinyMCE编辑器带来了HTML5占位符属性功能.

The placeholder plugin worked great for me. This plugin brings HTML5 placeholder attribute functionality for the TinyMCE editor.

这篇关于如何在TinyMCE中添加占位符文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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