quill-blot-formatter: image and video alignments do not save in quill.
Hi,
Thank you for making this library. I have an issue with image and video alignments.
When I click on an image or video I inserted in the quill editor (I am using react-quill), I can align left, right, and center using the resizer box provided by quill-blot-formatter. But, as soon as I remove the editor and display the content in <div class="ql-editor" dangerouslySetInnerHTML={{ __html: content }} />, all the contents, images and videos are there but alignments are ignored.
Could you tell me what I may be missing? or at least can I hide the alignment boxes in quill-blot-formatter so that users can just use the alignment options in the quill-toolbar?
Thanks
About this issue
- Original URL
- State: open
- Created 6 years ago
- Reactions: 8
- Comments: 16
Using the code above I had to make some changes to make quill accept it and register.
And them register it
Thanks miczed for pointing out the way
Same issue. And I find a solution here.
In my case, to make it work, I have to add formats configs as well.
Getting an Angular project to work required a couple of extra lines as Typescript needed a declaration. Hope this helps others with similar issues.
Any chance this could get fixed please?
@nitink66 react-quill exposes Quill from their interface, just use
import ReactQuill, {Quill} from 'react-quill'and it should work. see https://github.com/zenoamaro/react-quill#custom-formats