diff --git a/StreamField-blocks-API.md b/StreamField-blocks-API.md index 38ab5bc..a660309 100644 --- a/StreamField-blocks-API.md +++ b/StreamField-blocks-API.md @@ -26,7 +26,7 @@ The constructor can take whatever parameters it likes, but the base `Block` clas Subclasses of `Block` must implement the following methods: -### render_form(self, value, prefix='', error=None) +### render_form(self, value, prefix='', errors=None) Return the HTML for an instance of this block with the content given by 'value'. All element IDs and names must be prefixed by the given prefix. (The calling code will ensure that this prefix is unique for each individual block instance that appears in the form, in the case of repeatable blocks.) @@ -63,7 +63,7 @@ For example, `render_form(['peas', 'carrots', 'toothpaste'], 'matts-shopping-lis Any associated Javascript will typically not be rendered at this point (although for simple scripts that don't involve nesting blocks, an inline `