Constructor
new FormDataExtended(form, editorsopt, dtypesopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
form |
HTMLFormElement | The form being processed |
|
editors |
Object.<string, object> |
<optional> |
A record of TinyMCE editor metadata objects, indexed by their update key |
dtypes |
Object |
<optional> |
A mapping of data types for form fields |
Extends
- FormData
Members
dtypes :Object
A mapping of data types requested for each form field
Type:
- Object
editors :Object.<string, object>
A record of TinyMCE editors which are linked to this form
Type:
- Object.<string, object>
Methods
process(form)
Process the HTML form element to populate the FormData instance.
Parameters:
Name | Type | Description |
---|---|---|
form |
HTMLFormElement | The HTML form |
toObject() → {object}
Export the FormData as an object
Returns:
- Type
- object