Sha256: 93f661f303ba5bcb4ab5f7de4687e0aaccd86238304b421d749deb65b97309b5

Contents?: true

Size: 409 Bytes

Versions: 29

Compression:

Stored size: 409 Bytes

Contents

#= require ./file_view

Locomotive.Views.Inputs.Rte ||= {}

class Locomotive.Views.Inputs.Rte.ImageView extends Locomotive.Views.Inputs.Rte.FileView

  initialize: ->
    super()
    @$link        = @$('a[data-wysihtml5-command=insertImage]')
    @$popover     = @$link.next('.image-dialog-content')

  attach_editor: ->
    command = @editor.toolbar.commandMapping['insertImage:null']
    command.dialog = @

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
locomotivecms-3.3.0.rc1 app/assets/javascripts/locomotive/views/inputs/rte/image_view.js.coffee
locomotivecms-3.2.0 app/assets/javascripts/locomotive/views/inputs/rte/image_view.js.coffee
locomotivecms-3.2.0.rc2 app/assets/javascripts/locomotive/views/inputs/rte/image_view.js.coffee
locomotivecms-3.2.0.rc1 app/assets/javascripts/locomotive/views/inputs/rte/image_view.js.coffee
locomotivecms-3.1.1 app/assets/javascripts/locomotive/views/inputs/rte/image_view.js.coffee
locomotivecms-3.1.0 app/assets/javascripts/locomotive/views/inputs/rte/image_view.js.coffee
locomotivecms-3.1.0.rc3 app/assets/javascripts/locomotive/views/inputs/rte/image_view.js.coffee
locomotivecms-3.1.0.rc2 app/assets/javascripts/locomotive/views/inputs/rte/image_view.js.coffee
locomotivecms-3.1.0.rc1 app/assets/javascripts/locomotive/views/inputs/rte/image_view.js.coffee