Closed stanleyfok closed 8 years ago
Hey stanleyfok, Did you find anything for adding placeholder?
+1
in editor.html
<div id="zss_editor_content" style="width: 100%; height: 100%; -webkit-overflow-scrolling: touch; overflow: auto;" contenteditable="true" placeholder="Type something..."></div>
<div id="zss_editor_footer"> </div>
add "placeholder" property to zss_editor_content div and set it value what u want,then use css to control it(for example:#zss_editor_content:empty:before{content: attr(placeholder);color:#bbb;}#zss_editor_content:focus:before{content:none;})
Sadly, this is an ugly way :(
I will add getting the placeholder feature working to my list of things to do.
Placeholder is now working, you can set it using setPlaceholder
.
[self setPlaceholder:@"placeholder text"];
seems cannot set placeholder?