Skip to content

Commit

Permalink
docs: refactor output generate
Browse files Browse the repository at this point in the history
  • Loading branch information
zzxming committed Jan 13, 2025
1 parent c40b68a commit 5c110d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ const quill1 = new Quill('#editor1', {
const quill = [quill1];
window.quill = quill;

const output = [document.getElementById('output1')];

for (const [i, btn] of [document.getElementById('btn1')].entries()) {
for (let i = 0; i < 1; i++) {
const btn = document.getElementById(`btn${i + 1}`);
const output = document.getElementById(`output${i + 1}`);
btn.addEventListener('click', () => {
const content = quill[i].getContents();
console.log(content);
Expand Down

0 comments on commit 5c110d2

Please sign in to comment.