Quill: Why quill using class in html?

Created on 1 Nov 2016  路  5Comments  路  Source: quilljs/quill

I'm using quill for getting html on web and use its on mobile app. But some properties (align, size) not working because html value is:

<p class="ql-align-center">Hakk谋m谋zda Sayfas谋 Ba艧l谋臒谋</p>

I need pure html without any class dependencies. Any suggestion?

Most helpful comment

See SizeStyle as an example of how to use inline style.

All 5 comments

See SizeStyle as an example of how to use inline style.

How about colors, text align vs? Also size array like:

["10px", "13px", "15px" ,"18px", "20px", "30px", "50px" ]

Color use inline style by default.
You can replace the default align class format with a style format
I don't understand what you mean by size array.

I mean using custom font-size array (except 13px, normal, 18px, 32px).

The SizeStyle format has a whitelist with ['10px', '18px', '32px'].
You can create a custom format if you need other options.

Was this page helpful?
0 / 5 - 0 ratings