Note that paragraph / line breaks are not counted toward the limit

pull/8875/head
Matt Westcott 2022-07-20 12:13:06 +01:00 zatwierdzone przez Matt Westcott
rodzic 3fa5eb125c
commit 8f34e47b68
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -205,7 +205,7 @@ All block definitions accept the following optional keyword arguments:
:param editor: The rich text editor to be used (see :ref:`WAGTAILADMIN_RICH_TEXT_EDITORS`).
:param features: Specifies the set of features allowed (see :ref:`rich_text_features`).
:param required: If true (the default), the field cannot be left blank.
:param max_length: The maximum allowed length of the field. Only text is counted; rich text formatting and embedded content does not count towards the limit.
:param max_length: The maximum allowed length of the field. Only text is counted; rich text formatting, embedded content and paragraph / line breaks do not count towards the limit.
:param help_text: Help text to display alongside the field.
:param validators: A list of validation functions for the field (see `Django Validators <https://docs.djangoproject.com/en/stable/ref/validators/>`__).
:param form_classname: A value to add to the form field's ``class`` attribute when rendered on the page editing form.