Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught ReferenceError: Delta is not defined (quill cdn) #4613

Open
lukakostic opened this issue Feb 26, 2025 · 0 comments
Open

Uncaught ReferenceError: Delta is not defined (quill cdn) #4613

lukakostic opened this issue Feb 26, 2025 · 0 comments

Comments

@lukakostic
Copy link

lukakostic commented Feb 26, 2025

"Delta" is unidentified when using quill from cdn,
you can even see so if you try in the quickstart interactive playground:

Image

Thus making the documentation for "updateContents" impossible to follow:

quill.updateContents(new Delta()
  .retain(6)                  // Keep 'Hello '
  .delete(5)                  // 'World' is deleted
  .insert('Quill')
  .retain(1, { bold: true })  // Apply bold to exclamation mark
);

One can confirm this by searching the quill.js and finding no hits for "Delta" as its own word (yet "Quill" exists).
Seems somebody forgot to turn off minification for Delta class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant