Update documentation to reflect specific behavior of form_classname meta attribute

pull/3727/merge
Jeffrey Chau 2017-07-20 12:36:36 -07:00 zatwierdzone przez Matt Westcott
rodzic 42d274a470
commit 988a2487ef
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -792,6 +792,9 @@ To customise the styling of a ``StructBlock`` as it appears in the page editor,
You can then provide custom CSS for this block, targeted at the specified classname, by using the :ref:`insert_editor_css` hook.
.. Note::
Wagtail's editor styling has some built in styling for the ``struct-block`` class and other related elements. If you specify a value for ``form_classname``, it will overwrite the classes that are already applied to ``StructBlock``, so you must remember to specify the ``struct-block`` as well.
For more extensive customisations that require changes to the HTML markup as well, you can override the ``form_template`` attribute in ``Meta`` to specify your own template path. The following variables are available on this template:
``children``