PHP Class NiceditHelper

Inheritance: extends WysiwygAppHelper
ファイルを表示 Open project: josegonzalez/cakephp-wysiwyg

Protected Methods

Method Description
_build ( string $fieldName, array $options = [] ) : string Initializes the Wysiwyg Helper JS/CSS and generates helper javascript

Method Details

_build() protected method

### Options See each field type method for more information. Any options that are part of $attributes or $options for the different **type** methods can be included in $options for input().i Additionally, any unknown keys that are not in the list below, or part of the selected type's options will be treated as a regular html attribute for the generated input. - _buffer - A boolean for whether we should buffer input transformation js - _scripts - An array of scripts to buffer - _css - An array of css files to buffer - _cssText - A text string containing relevant css See http://nicedit.com/ for more options.
protected _build ( string $fieldName, array $options = [] ) : string
$fieldName string This should be "Modelname.fieldname"
$options array Each type of wysiwyg helper takes different options.
return string JavaScript code to initialise the Wysiwyg area