Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 93... Línea 93...
93
 */
93
 */
94
function editors_get_enabled() {
94
function editors_get_enabled() {
95
    global $CFG;
95
    global $CFG;
Línea 96... Línea 96...
96
 
96
 
97
    if (empty($CFG->texteditors)) {
97
    if (empty($CFG->texteditors)) {
98
        $CFG->texteditors = 'atto,tiny,textarea';
98
        $CFG->texteditors = 'tiny,textarea';
99
    }
99
    }
100
    $active = array();
100
    $active = array();
101
    foreach(explode(',', $CFG->texteditors) as $e) {
101
    foreach(explode(',', $CFG->texteditors) as $e) {
102
        if ($editor = get_texteditor($e)) {
102
        if ($editor = get_texteditor($e)) {
Línea 151... Línea 151...
151
 */
151
 */
152
function editors_head_setup() {
152
function editors_head_setup() {
153
    global $CFG;
153
    global $CFG;
Línea 154... Línea 154...
154
 
154
 
155
    if (empty($CFG->texteditors)) {
155
    if (empty($CFG->texteditors)) {
156
        $CFG->texteditors = 'atto,tiny,textarea';
156
        $CFG->texteditors = 'tiny,textarea';
157
    }
157
    }
Línea 158... Línea 158...
158
    $active = explode(',', $CFG->texteditors);
158
    $active = explode(',', $CFG->texteditors);
159
 
159
 
Línea 232... Línea 232...
232
     * @param string $elementid id of text area to be converted to editor
232
     * @param string $elementid id of text area to be converted to editor
233
     * @param array $options Editor options
233
     * @param array $options Editor options
234
     * @param obejct $fpoptions file picker options
234
     * @param obejct $fpoptions file picker options
235
     * @return void
235
     * @return void
236
     */
236
     */
237
    abstract public function use_editor($elementid, array $options=null, $fpoptions = null);
237
    abstract public function use_editor($elementid, ?array $options=null, $fpoptions = null);
Línea 238... Línea 238...
238
 
238
 
239
    /**
239
    /**
240
     * Setup all JS and CSS needed for editor.
240
     * Setup all JS and CSS needed for editor.
241
     * @return void
241
     * @return void