Sha256: 4f7db5864aab562df2030e925acd1f969b60dcc514d3912bd3e0e4a0a8cacab9

Contents?: true

Size: 462 Bytes

Versions: 4

Compression:

Stored size: 462 Bytes

Contents

{cloneFragment} = Trix

Trix.registerElement "trix-toolbar",
  defaultCSS: """
    %t {
      white-space: collapse;
    }

    %t .dialog {
      display: none;
    }

    %t .dialog.active {
      display: block;
    }

    %t .dialog input.validate:invalid {
      background-color: #ffdddd;
    }

    %t[native] {
      display: none;
    }
  """

  createdCallback: ->
    if @innerHTML is ""
      @appendChild(cloneFragment(Trix.config.toolbar.content))

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
vapid-0.1.3 lib/vapid/vendor/trix/src/trix/elements/trix_toolbar_element.coffee
vapid-0.1.2 lib/vapid/vendor/trix/src/trix/elements/trix_toolbar_element.coffee
vapid-0.1.1 lib/vapid/vendor/trix/src/trix/elements/trix_toolbar_element.coffee
vapid-0.1.0 lib/vapid/vendor/trix/src/trix/elements/trix_toolbar_element.coffee