quill.fields

Classes

QuillField

A textfield using the quill editor and with integrated sanitation.

Module Contents

class quill.fields.QuillField(*, tags: Sequence[str] | None = None, **kwargs: Any)[source]

Bases: wtforms.fields.TextAreaField

A textfield using the quill editor and with integrated sanitation.

Allows to specifiy which tags to use in the editor and for sanitation. Available tags are: strong, em, ol and ul (p and br tags are always possible).

data: markupsafe.Markup[source]
widget[source]
cleaner[source]
pre_validate(form: wtforms.form.BaseForm) None[source]

Override if you need field-level validation. Runs before any other validators.

Parameters:

form – The form the field belongs to.