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

className is not undefined in BlotFormatter.js #37

Open
safff opened this issue Mar 31, 2022 · 1 comment
Open

className is not undefined in BlotFormatter.js #37

safff opened this issue Mar 31, 2022 · 1 comment

Comments

@safff
Copy link

safff commented Mar 31, 2022

After packaging, “this.options” have an object of “default” in “BlotFormatter.js” ,“this.options” can not direct access “overlay“ and “specs” , Access is only through “default”, for example: “this.options.default.overlay.className”, “this.options.default.overlay.style”.

@timothyallan
Copy link

timothyallan commented Apr 2, 2022

Just started getting this as well after migrating to Vite and compiling for production.

Edit: importing straight from the dist works as a workaround:

// @ts-expect-error
import BlotFormatter from 'quill-blot-formatter/dist/BlotFormatter';

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

2 participants