Base abstract text editor class.
More...
|
string | $text = '' |
| $text The text set to the editor in the form. More...
|
|
Base abstract text editor class.
- Copyright
- 2009 Petr Skoda http://skodak.org
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ get_preferred_format()
texteditor::get_preferred_format |
( |
| ) |
|
|
abstract |
◆ get_supported_formats()
texteditor::get_supported_formats |
( |
| ) |
|
|
abstract |
◆ get_text()
Get the text set for this form field.
Can be called from "use_editor".
- Return values
-
◆ head_setup()
texteditor::head_setup |
( |
| ) |
|
Setup all JS and CSS needed for editor.
- Return values
-
Reimplemented in tinymce_texteditor.
◆ set_text()
texteditor::set_text |
( |
|
$text | ) |
|
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()
texteditor::supported_by_browser |
( |
| ) |
|
|
abstract |
◆ supports_repositories()
texteditor::supports_repositories |
( |
| ) |
|
|
abstract |
◆ use_editor()
texteditor::use_editor |
( |
|
$elementid, |
|
|
array |
$options = null , |
|
|
|
$fpoptions = null |
|
) |
| |
|
abstract |
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 in tinymce_texteditor, textarea_texteditor, and atto_texteditor.
◆ $text
string texteditor::$text = '' |
|
protected |
$text The text set to the editor in the form.
- Since
- 3.0
The documentation for this class was generated from the following file: