How to display the placeholder attribute in HTML5 textarea when CKEditor is activated?

≯℡__Kan透↙ 提交于 2020-01-14 14:48:09

问题


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:


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



来源:https://stackoverflow.com/questions/10153018/how-to-display-the-placeholder-attribute-in-html5-textarea-when-ckeditor-is-acti

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!