LeeHanYeong / django-quill-editor

django-quill-editor makes Quill.js easy to use on Django Forms and admin sites
https://django-quill-editor.readthedocs.io
MIT License
197 stars 49 forks source link

Text align center does not work #127

Open YasineNifa opened 8 months ago

YasineNifa commented 8 months ago

The alignment settings function properly within the editor, but upon displaying the content of the QuillField, the styling does not carry over. Despite observing that the

tag has the class ".ql-align-center" when I inspect the page, the text still appears aligned to the left of the page. Is it an issue with django-quill-editor or I am missing something ?

ALEXDINO7 commented 4 months ago

Nothing is working Now its a garbage

enzedonline commented 4 months ago

Works fine. If you see ".ql-align-center" and it has no effect, it likely means you don't have the quill css loaded.

plmrn commented 2 months ago

Might be a bit late to the party but just in case this could help The issue comes from the fact that the classes "ql-align-right" and equivalent are all contained within a .ql-editor mother class on the quill css file. So from what I gather it's a Quill "issue" rather than a django-quill one.

Several ways to address that:

If anybody has a better idea let me know.