zefyr icon indicating copy to clipboard operation
zefyr copied to clipboard

Quill.js compatibility

Open nerdware-timmmi opened this issue 6 years ago • 8 comments

I tried a delta, which was created by quilljs:

String doc = r'[{"insert":"Zur Zeit "},{"attributes":{"header":1},"insert":"\n"}]';

The delta doesn't work, because the attribute of quilljs is called header instead of heading. Is there a convention somewhere what the correct attribute name is?

At least I can't load a delta created by Quilljs.

Steps to Reproduce

  1. create text with quilljs editor in ReactJS
  2. Get delta
  3. use delta with zefyr

nerdware-timmmi avatar Mar 14 '19 12:03 nerdware-timmmi

https://github.com/zenoamaro/react-quill I using this quilljs editor in reactjs

nerdware-timmmi avatar Mar 14 '19 12:03 nerdware-timmmi

https://quilljs.com/docs/formats/ shows "header" as attribute name.

nerdware-timmmi avatar Mar 14 '19 12:03 nerdware-timmmi

Ok, this answer my question, https://github.com/memspace/zefyr/blob/master/doc/faq.md. Damn :-)

nerdware-timmmi avatar Mar 14 '19 13:03 nerdware-timmmi

I'm actually considering either Quill-compatibility mode or a way to convert from/to Quill documents. Though this is not very high in priority list right now.

I'll rename this to reflect the intention.

pulyaevskiy avatar Sep 14 '19 22:09 pulyaevskiy

This would be a feature I'd be interested in as we have a similar use case to this.

PaulHalliday avatar Sep 24 '19 15:09 PaulHalliday

https://github.com/memspace/zefyr/blob/master/doc/faq.md

Then what means "Zefyr editor uses Quill.js Delta as underlying data format."? That they are both JSON based? Would be great to see remark about incompatibility in the documentation just near that claim.

real-artswan avatar Nov 01 '19 12:11 real-artswan

Hey @pulyaevskiy, thanks for the great work. Any updates on Quill compatibility? I'm also interested in this feature as Quill has become sort of a standard nowadays.

ekleel avatar Feb 29 '20 06:02 ekleel

Any updates on this.

krishnakumarcn avatar Sep 09 '20 06:09 krishnakumarcn