Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 310 and 401] [Versions 311 and 401] [Versions 39 and 401]

YUI text editor integration.

Copyright: 2013 Damyon Wiese <damyon@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 207 lines (7 kb)
Included or required: 1 time
Referenced: 1 time
Includes or requires: 0 files

Defines 1 class

atto_texteditor:: (6 methods):
  supported_by_browser()
  get_supported_formats()
  get_preferred_format()
  supports_repositories()
  use_editor()
  get_init_params()


Class: atto_texteditor  - X-Ref

This is the texteditor implementation.

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

Of course!
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

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

Available Atto-specific options:
atto:toolbar - set to a string to override the system config editor_atto/toolbar

Available general options:
context - set to the current context object
enable_filemanagement - set false to get rid of the managefiles plugin
autosave - true/false to control autosave

Options are also passed through to the plugins.

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

get_init_params($elementid, array $options = null, array $fpoptions = null, $plugins = null)   X-Ref
Create a params array to init the editor.

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