Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 310 and 400] [Versions 310 and 401] [Versions 310 and 402] [Versions 310 and 403]

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: 206 lines (7 kb)
Included or required: 1 time
Referenced: 0 times
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