|
| get_plugin ($plugin) |
| Gets a named plugin object.
|
|
| get_preferred_format () |
| Returns text format preferred by this editor.
|
|
| get_supported_formats () |
| Returns array of supported text formats.
|
|
| get_text () |
| Get the text set for this form field.
|
|
| get_tinymce_base_url () |
| Equivalent to tinyMCE.baseURL value available from JavaScript, always use instead of /../ when referencing tinymce core code from moodle plugins!
|
|
| head_setup () |
| Sets up head code if necessary.
|
|
| set_text ($text) |
| Set the text set for this form field.
|
|
| supported_by_browser () |
| Is the current browser supported by this editor?
|
|
| supports_repositories () |
| Does this editor support picking from repositories?
|
|
| use_editor ($elementid, array $options=null, $fpoptions=null) |
| Use this editor for give element.
|
|
|
string | $version = '3.5.11' |
| active version - this is the directory name where to find tinymce code
|
|
|
| get_init_params ($elementid, array $options=null) |
|
|
string | $text = '' |
| $text The text set to the editor in the form.
|
|
◆ get_plugin()
tinymce_texteditor::get_plugin |
( |
| $plugin | ) |
|
Gets a named plugin object.
Will cause fatal error if plugin doesn't exist. This is intended for use by plugin files themselves.
- Parameters
-
string | $plugin | Name of plugin e.g. 'moodleemoticon' |
- Return values
-
◆ get_preferred_format()
tinymce_texteditor::get_preferred_format |
( |
| ) |
|
Returns text format preferred by this editor.
- Return values
-
Reimplemented from texteditor.
◆ get_supported_formats()
tinymce_texteditor::get_supported_formats |
( |
| ) |
|
Returns array of supported text formats.
- Return values
-
Reimplemented from texteditor.
◆ get_text()
Get the text set for this form field.
Can be called from "use_editor".
- Return values
-
◆ get_tinymce_base_url()
tinymce_texteditor::get_tinymce_base_url |
( |
| ) |
|
Equivalent to tinyMCE.baseURL value available from JavaScript, always use instead of /../ when referencing tinymce core code from moodle plugins!
- Return values
-
moodle_url | url pointing to the root of TinyMCE javascript code. |
◆ head_setup()
tinymce_texteditor::head_setup |
( |
| ) |
|
Sets up head code if necessary.
Reimplemented from texteditor.
◆ parse_toolbar_setting()
static tinymce_texteditor::parse_toolbar_setting |
( |
| $customtoolbar | ) |
|
|
static |
Parse the custom toolbar setting.
- Parameters
-
- 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()
tinymce_texteditor::supported_by_browser |
( |
| ) |
|
Is the current browser supported by this editor?
- Return values
-
Reimplemented from texteditor.
◆ supports_repositories()
tinymce_texteditor::supports_repositories |
( |
| ) |
|
Does this editor support picking from repositories?
- Return values
-
Reimplemented from texteditor.
◆ use_editor()
tinymce_texteditor::use_editor |
( |
| $elementid, |
|
|
array | $options = null, |
|
|
| $fpoptions = null ) |
Use this editor for give element.
- Parameters
-
string | $elementid | |
array | $options | |
null | $fpoptions | |
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/tinymce/lib.php