ember-cli-click-to-edit
v0.0.6
Published
Addon that add a click-to-edit textarea component.
Downloads
4
Maintainers
Readme
click-to-edit for ember-cli
Show a textarea content as plain text, allowing to edit the content with just one click.
Installation
ember install ember-cli-click-to-edit
Usage
{{click-to-edit value="insert your content here"}}
Options
You can use most of the options of textarea helper, with some particularities:
- cols='auto': sets teh width of the textarea to 100%
- rows='auto': adds support for autosize library
- blur: blur event is overriden by component behaviour
- readonly: disabled as it has no sense for this component