Search moodle.org's
Developer Documentation

  • Bug fixes for general core bugs in 3.11.x will end 9 May 2022 (12 months).
  • Bug fixes for security issues in 3.11.x will end 14 November 2022 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.
  • TinyMCE text editor integration.

    Copyright: 2009 Petr Skoda (http://skodak.org)
    License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
    File Size: 263 lines (10 kb)
    Included or required: 1 time
    Referenced: 0 times
    Includes or requires: 0 files

    Defines 1 class


    Class: tinymce_texteditor  - X-Ref

    supported_by_browser()   X-Ref
    Is the current browser supported by this editor?

    return: bool

    get_supported_formats()   X-Ref
    Returns array of supported text formats.

    return: array

    get_preferred_format()   X-Ref
    Returns text format preferred by this editor.

    return: int

    supports_repositories()   X-Ref
    Does this editor support picking from repositories?

    return: bool

    head_setup()   X-Ref
    Sets up head code if necessary.


    use_editor($elementid, array $options=null, $fpoptions=null)   X-Ref
    Use this editor for give element.

    param: string $elementid
    param: array $options
    param: null $fpoptions

    get_init_params($elementid, array $options=null)   X-Ref
    No description

    parse_toolbar_setting($customtoolbar)   X-Ref
    Parse the custom toolbar setting.

    return: array csv toolbar lines
    param: string $customtoolbar

    get_plugin($plugin)   X-Ref
    Gets a named plugin object. Will cause fatal error if plugin doesn't
    exist. This is intended for use by plugin files themselves.

    return: editor_tinymce_plugin Plugin object
    param: string $plugin Name of plugin e.g. 'moodleemoticon'

    get_tinymce_base_url()   X-Ref
    Equivalent to tinyMCE.baseURL value available from JavaScript,
    always use instead of /../ when referencing tinymce core code from moodle plugins!

    return: moodle_url url pointing to the root of TinyMCE javascript code.