Sha256: cc44b4832a6dc117ac22417ec5648d085779e9d01a7253ef0fc2456c154b9394

Contents?: true

Size: 524 Bytes

Versions: 4

Compression:

Stored size: 524 Bytes

Contents

# Explicitly require this file (not included in the main
# Trix bundle) to install the following global helpers.

@getEditorElement = ->
  document.querySelector("trix-editor")

@getToolbarElement = ->
  getEditorElement().toolbarElement

@getEditorController = ->
  getEditorElement().editorController

@getEditor = ->
  getEditorController().editor

@getComposition = ->
  getEditorController().composition

@getDocument = ->
  getComposition().document

@getSelectionManager = ->
  getEditorController().selectionManager

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
vapid-0.1.3 lib/vapid/vendor/trix/src/trix/core/helpers/global.coffee
vapid-0.1.2 lib/vapid/vendor/trix/src/trix/core/helpers/global.coffee
vapid-0.1.1 lib/vapid/vendor/trix/src/trix/core/helpers/global.coffee
vapid-0.1.0 lib/vapid/vendor/trix/src/trix/core/helpers/global.coffee