quill.fields

Module Contents

Classes

QuillField

A textfield using the quill editor and with integrated sanitation.

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).

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.