Elgg  Version 4.3
Variables
longtext.php File Reference

Go to the source code of this file.

Variables

 $vars ['class'] = elgg_extract_class($vars, 'elgg-input-longtext')
 Elgg long text input Displays a long text input field that can use WYSIWYG editor. More...
 
 $defaults
 
 $editor_opts = (array) elgg_extract('editor_options', $vars, [])
 
 $editor_opts ['disabled'] = !elgg_extract('editor', $vars, true)
 
 $editor_opts ['state'] = elgg_extract('visual', $vars, true) ? 'visual' : 'html'
 
 $editor_opts ['required'] = elgg_extract('required', $vars)
 
 $vars ['data-editor-opts'] = json_encode($editor_opts)
 
 $value = htmlspecialchars(elgg_extract('value', $vars, ''), ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8')
 

Variable Documentation

$defaults
Initial value:
= [
'rows' => '10'

Definition at line 22 of file longtext.php.

$editor_opts = (array) elgg_extract('editor_options', $vars, [])

Definition at line 30 of file longtext.php.

$editor_opts['disabled'] = !elgg_extract('editor', $vars, true)

Definition at line 31 of file longtext.php.

$editor_opts['state'] = elgg_extract('visual', $vars, true) ? 'visual' : 'html'

Definition at line 32 of file longtext.php.

$editor_opts['required'] = elgg_extract('required', $vars)

Definition at line 33 of file longtext.php.

$value = htmlspecialchars(elgg_extract('value', $vars, ''), ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8')

Definition at line 42 of file longtext.php.

$vars = elgg_extract_class($vars, 'elgg-input-longtext')

Elgg long text input Displays a long text input field that can use WYSIWYG editor.

$vars['value'] The current value, if any - will be html encoded $vars['disabled'] Is the input field disabled? $vars['class'] Additional CSS class $vars['visual'] Activate WYSIWYG editor immediately If disabled, will display a plaintext input with a link to activate the visual editor

$vars['editor'] Enable WYSIWYG support Requires a plugin that implements a WYWIWYG library (e.g. bundled ckeditor plugin) $vars['editor_type'] The type of editor eg. 'simple'. It determines the style of the editor (if supported). $vars['editor_options'] Additional options to pass to the editor

Definition at line 20 of file longtext.php.

$vars['data-editor-opts'] = json_encode($editor_opts)

Definition at line 40 of file longtext.php.