quill
quill copied to clipboard
Please generate also tags with left-align tags.
Quill assumes that a text block is left aligned, so if you select the left align button in the toolbar,
no <p class="ql-align-left"> tag. Is generated.
But in my application an initial text block is center-aligned, so as a result I can't generate left-algned text.
I tried option { 'align': ['left', 'right', 'center'] }
but that does not work.
I was about to report this problem as well. I tried option { 'align': 'left' } and that did not work. I noticed that clicking on { 'align': 'right' } icon twice made it left aligned again.
{ 'align': [] } might work in your case since you try to use a pulldownmenu, but then you also justified text option.
+1 on this feature enhancement.
We recently ran into a problem where we use QuillJS for letting users adjust content in an email. The default creative in the email is defined as center aligned, globally. Our team does not have control over the creative as this is user generated as a setting for their emails as a whole. We give them 1 section they can edit.
So when a user selects left-align, nothing will change for this user, because QuillJS does not provide a class to override the default alignment.
Having the tool generate left-align tags would solve a lot of problems for us. As it stands right now we have to either hide functionality on center aligned emails, or we have to write custom code to try and provide a class, but our dev team said they would not support.
Quill 2.0 has been released (announcement post) with many changes and fixes. If this is still an issue please create a new issue after reviewing our updated Contributing guide :pray: