Should be there
```' + ((obj.editMax) ? ' maxlength="' + obj.editMax + '"' : '') + '```
otherwise will be placed some wrong code into HTML