st-h/ember-content-editable

Support expected attributes

chrissloey opened this issue · 4 comments

We should support as much of what {{input}} supports as is possible & reasonable - things that you'd expect when using the component.

  • maxlength
  • type="number" *
  • disabled
  • readonly
  • autofocus
  • tabindex
  • spellcheck

Some of this might already be supported, some of it might not be feasible depending on how browsers behave. Needs to be tested.

  • I don't think other types outside of number/text are applicable?

Released type="number" in v0.4.0. Also deprecated isText to be consistent with the input type - isText=true can be changed to type="text" and isText=false to type="html".

Spellcheck support added.

Tabindex attribute now gets set too, but will only work on certain elements.

The following elements support the tabindex attribute: A, AREA, BUTTON, INPUT, OBJECT, SELECT, and TEXTAREA.

These will be in v0.5.0

Supporting autofocus looks like it will be hacky (would need JS, and wouldn't work at all on iOS). I don't intend to support this right now anymore.

0.6.0 has maxlength attribute