Comments (2)
编辑器目前不支持 placeholder ,因为编辑器实际上是一个 div,而不是一个textarea。
我可以告诉你一个方法:
你让页面默认显示一个input,其中加上placeholder属性。当用户focus这个input时候,再显示编辑器。
我还专门为你做了了一个demo:http://www.wangeditor.com/wangEditor/test/test-placeholder.html
源代码:https://github.com/wangfupeng1988/wangEditor/blob/master/test/test-placeholder.html
from wangeditor.
该问题同 #37 是一个问题,先关闭该问题。
更多信息可参见:#37
from wangeditor.
Related Issues (20)
- 请问wangeditor在原生微信小程序里怎么使用? HOT 1
- 输入内容报错(本地没问题,线上出问题) HOT 5
- 在mathml或者svg公式后边会失去光标定位 HOT 4
- 试试更新到 5.1.23版本 wangEditor?
- 弹窗内使用Editor聚焦和回车就会报错 HOT 1
- vue2.6.14项目使用@wangeditor/editor 5.1.16和@wangeditor/editor-for-vue报错:vue.esm.js?2b0e:619 [Vue warn]: $attrs is readonly vue.esm.js?2b0e:619 [Vue warn]: $listeners is readonly
- 我也遇到了低版本浏览器不兼容的问题
- 工具栏里面【字体颜色】【字体背景色】旁边有个下三角图标,如何取消 HOT 1
- 怎样实现单选框插入 HOT 1
- 将图片拖拽入编辑器,根据图片data-data,对图片进行特殊的处理 HOT 3
- 用的5.1版本,按照官网demo写的,加载时这个方法toSlateRange抛出异常导致编辑器半不可用状态,异常信息: Cannot resolve a Slate range from DOM range: at Object.toSlateRange... HOT 1
- 在wangEditor 5 版本中blockquote(代码块)中无法使用bulletedList(无序列表)和numberedList(有序列表) HOT 4
- 文本高亮建议增加abap的支持 HOT 1
- wangEditor5与Axure RP不兼容
- 希望大佬可以支持markdown编辑 HOT 1
- 插入的视频是否支持去掉操作栏 HOT 4
- Boot.registerMenu(saveConf) 注册自定义菜单项存在重复注册的问题 HOT 11
- 添加视频需要修改视频的封面图 HOT 2
- 复制html,img标签的width,height属性被过滤了 HOT 4
- 想在编辑器里扩展一种可以插入一个固定大小的浮动元素的按钮 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wangeditor.