You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment the value option is used to generate the content within the content_tag output, however, I find myself often wanting to display cropped or truncated content i.e.
<spanclass="editable" value="Once upon a time in the west.">Once upon a time....</span>
I'd like to propose either a new option to the edtiable() helper to allow configuration of this:
At the moment the
value
option is used to generate the content within thecontent_tag
output, however, I find myself often wanting to display cropped or truncated content i.e.I'd like to propose either a new option to the
edtiable()
helper to allow configuration of this:Or perhaps allow the passing of a block which is yielded within the
content_tag
.Anyone have thoughts on this? I'd be happy to look at putting a PR together unless there are objections to this kind of behaviour in the helper?
The text was updated successfully, but these errors were encountered: