Skip to content

dbuedo/ember-cli-click-to-edit

Repository files navigation

click-to-edit for ember-cli

npm version Build Status

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