You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 ?
The text was updated successfully, but these errors were encountered:
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:
when displaying a quill field, add a "ql-editor" class to a div containing tag (cons: you have the full .ql-editor styling applied to it and maybe stuff you wouldn't want to apply)
you can also declare ql-align-right and the other pertinent ones in your own CSS, with the !important tag on the style instructions (cons: you might miss some ql classes in the process)
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 ?
The text was updated successfully, but these errors were encountered: