|
| string | $text = '' |
| | $text The text set to the editor in the form.
|
| |
◆ get_preferred_format()
| textarea_texteditor::get_preferred_format |
( |
| ) |
|
Returns main preferred text format.
- Return values
-
Reimplemented from texteditor.
◆ get_supported_formats()
| textarea_texteditor::get_supported_formats |
( |
| ) |
|
Returns list of supported text formats.
- Return values
-
| array | Array (FORMAT=>FORMAT) |
Reimplemented from texteditor.
◆ get_text()
Get the text set for this form field.
Can be called from "use_editor".
- Return values
-
◆ head_setup()
| texteditor::head_setup |
( |
| ) |
|
|
inherited |
Setup all JS and CSS needed for editor.
- Return values
-
◆ set_text()
| texteditor::set_text |
( |
| $text | ) |
|
|
inherited |
Set the text set for this form field.
Will be called before "use_editor".
- Parameters
-
| string | $text | The text for the form field. |
◆ supported_by_browser()
| textarea_texteditor::supported_by_browser |
( |
| ) |
|
Is editor supported in current browser?
- Return values
-
Reimplemented from texteditor.
◆ supports_repositories()
| textarea_texteditor::supports_repositories |
( |
| ) |
|
Supports file picker and repos?
- Return values
-
Reimplemented from texteditor.
◆ use_editor()
| textarea_texteditor::use_editor |
( |
| $elementid, |
|
|
?array | $options = null, |
|
|
| $fpoptions = null ) |
Add required JS needed for editor.
Valid options may vary by editor. See the individual editor implementations of this function for documentation.
- Parameters
-
| string | $elementid | id of text area to be converted to editor |
| array | $options | Editor options |
| obejct | $fpoptions | file picker options |
- Return values
-
Reimplemented from texteditor.
◆ $text
| string texteditor::$text = '' |
|
protectedinherited |
$text The text set to the editor in the form.
- Since
- 3.0
The documentation for this class was generated from the following file:
- lib/editor/textarea/lib.php