MDL-30259 TinyMCE: Add spellchecker language options
[moodle.git] / lib / editor / tinymce / settings.php
CommitLineData
7a856a93 1<?php
9d40814e 2
6fc67fce
PS
3// This file is part of Moodle - http://moodle.org/
4//
5// Moodle is free software: you can redistribute it and/or modify
6// it under the terms of the GNU General Public License as published by
7// the Free Software Foundation, either version 3 of the License, or
8// (at your option) any later version.
9//
10// Moodle is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU General Public License for more details.
14//
15// You should have received a copy of the GNU General Public License
16// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
9d40814e 17
7a856a93 18/**
6fc67fce 19 * TinyMCE admin settings
7a856a93 20 *
7ad5a627
PS
21 * @package editor
22 * @subpackage tinymce
6fc67fce
PS
23 * @copyright 2009 Petr Skoda (http://skodak.org)
24 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
7a856a93 25 */
7a856a93 26
6fc67fce 27defined('MOODLE_INTERNAL') || die;
34a30b5c 28
6fc67fce
PS
29if ($ADMIN->fulltree) {
30 $options = array(
31 'PSpell'=>'PSpell',
32 'GoogleSpell'=>'Google Spell',
33 'PSpellShell'=>'PSpellShell');
ad6fbb60
RN
34 $settings->add(new admin_setting_configselect('editor_tinymce/spellengine',
35 get_string('spellengine', 'admin'), '', 'GoogleSpell', $options));
36 $settings->add(new admin_setting_configtext('editor_tinymce/spelllanguagelist',
37 get_string('spelllanguagelist', 'admin'), '',
38 '+English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr,German=de,Italian=it,Polish=pl,' .
39 'Portuguese=pt,Spanish=es,Swedish=sv', PARAM_RAW));
7a856a93 40}