import Quill from "quill"; import "quill/dist/quill.snow.css"; export default function alpineQuill(Alpine) { Alpine.directive( "quill", (el, { expression }, { evaluateLater, cleanup }) => { // 1. Fallback gracefully if x-quill has no parameters const getContent = expression ? evaluateLater(expression) : (cb) => cb({}); getContent((userOptions) => { const options = Object.assign( { theme: "snow", placeholder: "Write something...", }, typeof userOptions === "object" ? userOptions : {}, ); // 2. Identify or create container DIV (Quill crashes on