MDL-19184, MDL-19212 - refactoring, cleanup and improvements in text editors support...
[moodle.git] / lib / editor / textarea / lib.php
CommitLineData
5ca3c838 1<?php
2
3class textarea_texteditor extends texteditor {
4 public function supported_by_browser() {
5 return true;
6 }
7
8 public function get_supported_formats() {
9 return array(FORMAT_HTML => FORMAT_HTML,
10 FORMAT_MOODLE => FORMAT_MOODLE,
11 FORMAT_PLAIN => FORMAT_PLAIN,
12 FORMAT_MARKDOWN => FORMAT_MARKDOWN,
13 );
14 }
15
16 public function get_preferred_format() {
17 return FORMAT_MOODLE;
18 }
19
20 public function supports_repositories() {
21 return true;
22 }
23
24 public function get_editor_element_class() {
25 return 'form-textarea-simple';
26 }
27
28 public function get_legacy_textarea_class() {
29 return 'form-textarea-legacy';
30 }
31
32 public function header_js() {
33 return '';
34 }
35}
36
37