Sha256: ae5d7935c1628370f32b38b22e1bdb1202fce6496da00ec8f852c90fc7d883b1

Contents?: true

Size: 550 Bytes

Versions: 2

Compression:

Stored size: 550 Bytes

Contents

!function(){"use strict";var t=class extends Trestle.ApplicationController{static values={configuration:{type:String,default:"default"}};connect(){tinymce.init({target:this.element,...this.configuration})}disconnect(){const t=tinymce.get(this.element.id);t&&t.remove()}get configuration(){return Trestle.TinyMCE[this.configurationValue]}};Trestle.TinyMCE={},Stimulus.register("tinymce",t),document.addEventListener("focusin",(t=>{null!==t.target.closest(".tox-tinymce-aux, .moxman-window, .tam-assetmanager-root")&&t.stopImmediatePropagation()}))}();

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
trestle-tinymce-0.4.0 app/assets/bundle/trestle/tinymce.js
trestle-tinymce-0.4.0.pre2 app/assets/bundle/trestle/tinymce.js