#= require jquery.caret #= require jquery.tag-editor scrivito.on 'content', (content) -> if scrivito.in_editable_view() $(content).find(''' [data-scrivito-field-type=stringlist]:not([data-editor]), [data-editor~=stringlist] ''').each -> field = $(this) field.tagEditor initialTags: field.scrivito('content') onChange: (field, editor, tags) -> field.scrivito('save', tags)