Sha256: 57e59d7a1b004c9a65e3695da31920b843b4b0a15d5c7232d59a4a51b25e3141
Contents?: true
Size: 578 Bytes
Versions: 14
Compression:
Stored size: 578 Bytes
Contents
@RedactorPlugins ?= {} $ -> RedactorPlugins.scrivito_editors_image_manager = -> self = init: -> @modal.addCallback 'image', self.browse browse: -> filterContext = $.extend {_image: true}, @$element.data('filterContext') scrivito.content_browser.open filter: @$element.data('filter') filter_context: filterContext selection_mode: 'single' .done (selection) => id = selection[0] self.insert id if id? .always => @modal.close() insert: (id) -> @image.insert "<img src='/#{id}'>"
Version data entries
14 entries across 14 versions & 1 rubygems