Sha256: 0f11c1fa9eae6032c9887e475afe7e136aeaec587e1819f39ac4620cb9c8f899

Contents?: true

Size: 427 Bytes

Versions: 2

Compression:

Stored size: 427 Bytes

Contents

/* global Trestle, Stimulus */

import TinyMCEController from './controllers/tinymce_controller'

// Configuration container
Trestle.TinyMCE = {}

Stimulus.register('tinymce', TinyMCEController)

// Prevent Bootstrap dialog from blocking focusin
document.addEventListener('focusin', (e) => {
  if (e.target.closest(".tox-tinymce-aux, .moxman-window, .tam-assetmanager-root") !== null) {
    e.stopImmediatePropagation()
  }
})

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
trestle-tinymce-0.4.0 frontend/js/index.js
trestle-tinymce-0.4.0.pre2 frontend/js/index.js