Sha256: 20a0613a91ce958db1f6f5a778d87664bed56ac5c418d1bf33ce77b8399e85a4

Contents?: true

Size: 423 Bytes

Versions: 11

Compression:

Stored size: 423 Bytes

Contents

#= 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)

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
scrivito_editors-0.70.2 app/assets/javascripts/scrivito_editors/stringlist_editor.js.coffee
scrivito_editors-0.71.2 app/assets/javascripts/scrivito_editors/stringlist_editor.js.coffee
scrivito_editors-0.71.1 app/assets/javascripts/scrivito_editors/stringlist_editor.js.coffee
scrivito_editors-0.70.1 app/assets/javascripts/scrivito_editors/stringlist_editor.js.coffee
scrivito_editors-0.71.0 app/assets/javascripts/scrivito_editors/stringlist_editor.js.coffee
scrivito_editors-0.71.0.rc2 app/assets/javascripts/scrivito_editors/stringlist_editor.js.coffee
scrivito_editors-0.71.0.rc1 app/assets/javascripts/scrivito_editors/stringlist_editor.js.coffee
scrivito_editors-0.70.0 app/assets/javascripts/scrivito_editors/stringlist_editor.js.coffee
scrivito_editors-0.70.0.rc3 app/assets/javascripts/scrivito_editors/stringlist_editor.js.coffee
scrivito_editors-0.70.0.rc2 app/assets/javascripts/scrivito_editors/stringlist_editor.js.coffee
scrivito_editors-0.70.0.rc1 app/assets/javascripts/scrivito_editors/stringlist_editor.js.coffee