// assets/controllers/compose-toolbar_controller.js import { Controller } from '@hotwired/stimulus'; export default class extends Controller { static targets = [ 'editor', 'hiddenInput', 'fontFamily', 'fontSize', 'boldBtn', 'italicBtn', 'underlineBtn', 'colorSwatch', // The link popover and its two faces. See #openLinkPopover. 'linkBtn', 'linkPopover', 'linkEdit', 'linkView', 'linkHeading', 'linkUrl', 'linkText', 'linkError', 'linkUnlink', 'linkHref', ]; static values = { // Translated server-side and handed over as one object, exactly as // compose--compose and ui--select take theirs. Nothing in this file // spells an English string it expects a user to read. i18n: { type: Object, default: {} }, }; // Keyed by the