Sha256: bc7426a659a48d5d45e3fb70796eaa22131862540e71905937969986f1cbfd80
Contents?: true
Size: 518 Bytes
Versions: 4
Compression:
Stored size: 518 Bytes
Contents
/* global Redactor */ import { Controller } from '@hotwired/stimulus' import 'redactor' export default class extends Controller { connect () { this.initRedactor() } initRedactor () { if (typeof Redactor === 'undefined') { console.error('Redactor is a paid module and is not included in Headmin. Please purchase it and import it as a JS module') return false } const options = JSON.parse(this.element.getAttribute('data-redactor-options')) Redactor(this.element, options) } }
Version data entries
4 entries across 4 versions & 1 rubygems