`}
files={{
'index.js': `
const quill = new Quill('#editor', { theme: 'snow' });
quill.on(Quill.events.TEXT_CHANGE, update);
const playground = document.querySelector('#playground');
update();
function formatDelta(delta) {
return \`\${JSON.stringify(delta.ops, null, 2)}
\`;
}
function update(delta) {
const contents = quill.getContents();
let html = \`contents
\${formatDelta(contents)}\`
if (delta) {
html = \`\${html}change
\${formatDelta(delta)}\`;
}
playground.innerHTML = html;
}
`
}}
/>