-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
编辑中是否可以加一个placeholder #37
Comments
编辑器目前不支持 placeholder ,因为编辑器实际上是一个 div,而不是一个textarea。 我还专门为你做了了一个demo:http://www.wangeditor.com/wangEditor/test/test-placeholder.html |
提问者长时间不反馈,先把问题关闭,如有需要,再重新向我反馈。 |
我在使用移动版的时候遇到这个问题是这样解决的,给textarea添加onclick时间,点击编辑器初始化 |
@lgd5555 新问题重新提交一个issue,并且去移动版的项目下面去提交。放在这儿就乱了 |
哦,这不是新的问题,只是一个可适用于移动编辑器的解决方案,我想也许可以用在PC端 |
@lgd5555 哦。。。抱歉哈,我一时大意看错了。。。感谢你的答复 |
fix: 修复 modal 中的 input 没有被 focus
类似于截图中的效果。
我之前也做过一个div的编辑器,简单的代码如下:
借助了Jquery的placeholder的插件才兼容了IE浏览器。
就想着如果你的实现也是在div的基础上弄的,那应该也容易吧?
The text was updated successfully, but these errors were encountered: