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

How is Quill2.0 compatible? #27

Open
pengmingjun08 opened this issue Mar 18, 2024 · 5 comments
Open

How is Quill2.0 compatible? #27

pengmingjun08 opened this issue Mar 18, 2024 · 5 comments

Comments

@pengmingjun08
Copy link

No description provided.

@stefanbildl
Copy link

I tried to use the newest version quill@"2.0.0-rc.0" but these errors appeared.

Error: node_modules/.pnpm/@[email protected][email protected]/node_modules/@xeger/quill-image-actions/lib/ImageActions.d.ts:1:15 - error TS2614: Module '"quill"' has no exported member 'Quill'. Did you mean to use 'import Quill from "quill"' instead?

1 import type { Quill } from 'quill';
                ~~~~~


Error: node_modules/.pnpm/@[email protected][email protected]/node_modules/@xeger/quill-image-actions/lib/actions/align/DefaultAligner.d.ts:1:15 - error TS2614: Module '"quill"' has no exported member 'Quill'. Did you mean to use 'import Quill from "quill"' instead?

1 import type { Quill as IQuill } from 'quill';
                ~~~~~


Error: node_modules/.pnpm/@[email protected][email protected]/node_modules/@xeger/quill-image-formats/lib/extend.d.ts:1:15 - error TS2614: Module '"quill"' has no exported member 'Quill'. Did you mean to use 'import Quill from "quill"' instead?

1 import type { Quill as IQuill } from 'quill';
                ~~~~~


Error: node_modules/.pnpm/@[email protected][email protected]/node_modules/@xeger/quill-image-formats/lib/formats.d.ts:1:15 - error TS2614: Module '"quill"' has no exported member 'Quill'. Did you mean to use 'import Quill from "quill"' instead?

1 import type { Quill as IQuill } from 'quill';
                ~~~~~


Error: node_modules/.pnpm/@[email protected][email protected]/node_modules/@xeger/quill-image-formats/lib/index.d.ts:1:15 - error TS2614: Module '"quill"' has no exported member 'Quill'. Did you mean to use 'import Quill from "quill"' instead?

1 import type { Quill as IQuill } from 'quill';
                ~~~~~

@xeger
Copy link
Owner

xeger commented Jun 3, 2024

Sorry; this plugin was intended only for use with Quill 1.x.

It might be valid in Quill 2, but the implementation of the editor changed so much that it would need to be rewritten from scratch.

@enzedonline
Copy link

Definitely not compatible unfortunately -

TypeError: parchment.Attributor.Style is not a constructor
    at createFormats

(in https://cdn.jsdelivr.net/npm/@xeger/quill-image-formats/lib/index.js L229)

  var Float = new parchment.Attributor.Style('float', 'float', {
    scope: parchment.Scope.INLINE_BLOT,
    whitelist: ['left', 'right']
  });

@marcandre
Copy link

Please consider:

  1. Stating this in big letters at the very beginning of the README, and
  2. Archiving the project.

@enzedonline
Copy link

Anyone looking for v2 compatible blot-formatter, I rewrote the original for v2 and added some enhancements:
https://github.com/enzedonline/quill-blot-formatter2

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

5 participants