Skip to content

Commit 6707d07

Browse files
Merge pull request #1639 from LaBisquerie/patch-1
Update `HelperOptions` documentation
2 parents 3b3bcc3 + f3ea204 commit 6707d07

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

development/components/helpers/helperoptions.md

+3
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ $this->fields_options = [
3333
'type' => {'text', 'hidden', 'select', 'bool', 'radio', // The kind of input field you want to use.
3434
'checkbox', 'password', 'textarea', 'file', 'textLang',
3535
'textareaLang', 'selectLang'},
36+
'autoload_rte' => true, // Display a TinyMCE editor for textarea field only
3637
'suffix' => 'kg', // Display after the field (ie. currency).
3738
// For text fields or password fields only.
3839
'identifier' => 'id_carrier', // The unique ID for the form.
@@ -57,6 +58,8 @@ $this->fields_options = [
5758

5859
For multilang configuration fields you can use `Lang` version i.e. `textLang` is the multilang version of `text` field.
5960

61+
To save the HTML content of the TinyMCE editor, remember to use `'validation' => 'isCleanHtml'`.
62+
6063
## Basic declaration
6164

6265
Removing all the optional fields, this is how to build a basic HelperOptions element:

0 commit comments

Comments
 (0)