diff --git a/development/components/helpers/helperoptions.md b/development/components/helpers/helperoptions.md index 8e2a9ec49b..eadd5833e4 100644 --- a/development/components/helpers/helperoptions.md +++ b/development/components/helpers/helperoptions.md @@ -33,6 +33,7 @@ $this->fields_options = [ 'type' => {'text', 'hidden', 'select', 'bool', 'radio', // The kind of input field you want to use. 'checkbox', 'password', 'textarea', 'file', 'textLang', 'textareaLang', 'selectLang'}, + 'autoload_rte' => true, // Display a TinyMCE editor for textarea field only 'suffix' => 'kg', // Display after the field (ie. currency). // For text fields or password fields only. 'identifier' => 'id_carrier', // The unique ID for the form. @@ -57,6 +58,8 @@ $this->fields_options = [ For multilang configuration fields you can use `Lang` version i.e. `textLang` is the multilang version of `text` field. +To save the HTML content of the TinyMCE editor, remember to use `'validation' => 'isCleanHtml'`. + ## Basic declaration Removing all the optional fields, this is how to build a basic HelperOptions element: