Property | Type | Description | |
---|---|---|---|
$helpers | array | Helper dependencies |
Property | Type | Description | |
---|---|---|---|
$_helperOptions | public $helpers = array( 'Wysiwyg.Tinymce' => array( 'theme_advanced_toolbar_align' => 'right', ) ); | ||
$_initialized | boolean | Whether helper has been initialized once or not |
Method | Description | |
---|---|---|
__construct ( View $View, array $settings = [] ) : void | Sets the $this->helper to the helper configured in the session | |
input ( string $fieldName, array $options = [], array $helperOptions = [] ) : string | Creates an fckeditor input field | |
textarea ( string $fieldName, array $options = [], array $helperOptions = [] ) : string | Creates an fckeditor textarea |
Method | Description | |
---|---|---|
_initializationOptions ( array $options = [] ) : string | Returns a json string containing helper settings | |
_initialize ( array $options = [] ) : void | Initialize the helper css and js for a given input field |
public __construct ( View $View, array $settings = [] ) : void | ||
$View | View | The View this helper is being attached to. |
$settings | array | Configuration settings for the helper. |
return | void |
protected _initializationOptions ( array $options = [] ) : string | ||
$options | array | array of Wysiwyg editor settings |
return | string | json_encoded array of options |
protected _initialize ( array $options = [] ) : void | ||
$options | array | array of css files, javascript files, and css text to enqueue |
return | void |
public input ( string $fieldName, array $options = [], array $helperOptions = [] ) : string | ||
$fieldName | string | This should be "Modelname.fieldname" |
$options | array | Each type of input takes different options. |
$helperOptions | array | Each type of wysiwyg helper takes different options. |
return | string | An HTML input element with Wysiwyg Js |
public textarea ( string $fieldName, array $options = [], array $helperOptions = [] ) : string | ||
$fieldName | string | This should be "Modelname.fieldname" |
$options | array | Each type of input takes different options. |
$helperOptions | array | Each type of wysiwyg helper takes different options. |
return | string | An HTML textarea element with Wysiwyg Js |
protected $_helperOptions |
protected bool $_initialized | ||
return | boolean |