How to change the input size?
the default input text size is to short,how to increase my input text size?

not the nicest, but the easiest way would be to use e-style attribute.
<span editable-text="user.name" e-name="name" e-style="width:400px;" onbeforesave="doSomething($data)" </span>
@m-apsolon thank you ~
If you're going to do a lot of them and/or several other modifications, you could add a supplemental style sheet. A later style setting will override a previous one of the same weight, so make sure your custom style sheet loads last.
Could we do a responsive size? Thanks.
Perhaps a percentage?
I mad this change direct into the css (by the way, I'm using sass), in this part here:
.editable-wrap {
display:block;
width: 100%;
padding-right:10px;
.editable-controls {
> input,
> select,
> textarea {
display: inline-block;
width: 100%;
}
}
}
Hope this is what you are looking for.
Edit: This will override the main style, so every editable will have this style. If you want to apply this to just one page or one form, you can follow @innerpeace0 response, and create your own style to change it.
@innerpeace0 I used a percentage and the size can be changed, but however it didn't show a responsive size. @celsomtrindade I don't have any experience on sass, I'm wondering how could I modify it into css3 between directly? Thanks!
It would be something like this:
.editable-wrap {
display:block;
width: 100%;
}
.editable-wrap .editable-controls > input,
.editable-wrap .editable-controls > select,
.editable-wrap .editable-controls > textarea {
display: inline-block;
width: 100%;
}
But like i said, this is the default css and i did this modification to match my layout, maybe you need to change some things to match yours, but you'll get the idea.
@celsomtrindade Thank you very much! I'm looking into it.
Did you try to use the ### inline-size property of an input text in CSS or the ### size property it's doing the effect for me.