Sha256: dfa25790fb67285b3d9692943f0da36136869f8ec07095715385f63d376c6154

Contents?: true

Size: 542 Bytes

Versions: 4

Compression:

Stored size: 542 Bytes

Contents

{makeElement} = Trix

prototypes =
  cursorTarget:
    makeElement
      tagName: "span"
      textContent: Trix.ZERO_WIDTH_SPACE
      data:
        trixSelection: true
        trixCursorTarget: true
        trixSerialize: false

Trix.extend
  selectionElements:
    selector: "[data-trix-selection]"

    cssText: """
      font-size: 0 !important;
      padding: 0 !important;
      margin: 0 !important;
      border: none !important;
      line-height: 0 !important;
    """

    create: (name) ->
      prototypes[name].cloneNode(true)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
vapid-0.1.3 lib/vapid/vendor/trix/src/trix/config/selection_elements.coffee
vapid-0.1.2 lib/vapid/vendor/trix/src/trix/config/selection_elements.coffee
vapid-0.1.1 lib/vapid/vendor/trix/src/trix/config/selection_elements.coffee
vapid-0.1.0 lib/vapid/vendor/trix/src/trix/config/selection_elements.coffee