Sha256: 577e10f55025fe714d9d4122161f4df4f3a6e10c286f7c0a416599770c998c99
Contents?: true
Size: 795 Bytes
Versions: 19
Compression:
Stored size: 795 Bytes
Contents
Locomotive.Views.Inputs.Rte ||= {} class Locomotive.Views.Inputs.Rte.EditTableView extends Backbone.View initialize: -> _.bindAll(@, 'hide') @$link = @$('a[data-wysihtml5-hiddentools=table]') @$content = @$link.next('.table-dialog-content') @editor = @options.editor render: -> return if @$link.size() == 0 @create_popover() @attach_events() create_popover: -> @$link.popover placement: 'bottom' content: @$content.html() html: true title: undefined attach_events: -> @editor.on 'tableunselect:composer', @hide detach_events: -> @editor.stopObserving 'tableselect:composer', @hide hide: -> @$link.popover('hide') remove: -> @$link.popover('destroy') @$('.popover').remove()
Version data entries
19 entries across 19 versions & 1 rubygems