Elgg  Version 6.1
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 ['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 18 of file longtext.php.

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

Definition at line 26 of file longtext.php.

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

Definition at line 27 of file longtext.php.

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

Definition at line 28 of file longtext.php.

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

Definition at line 36 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['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 16 of file longtext.php.

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

Definition at line 34 of file longtext.php.