mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
Better check on aspell
This commit is contained in:
parent
fef9b51dac
commit
14ca3084a0
@ -147,7 +147,7 @@ HTMLArea.Config = function () {
|
||||
"inserthorizontalrule", "createanchor", "createlink", "unlink", "nolink", "separator",
|
||||
"insertimage", "inserttable",
|
||||
"insertsmile", "insertchar",
|
||||
<?php if (!empty($CFG->aspellpath) && !empty($CFG->editorspelling)) {
|
||||
<?php if (!empty($CFG->aspellpath) && file_exists($CFG->aspellpath) && !empty($CFG->editorspelling)) {
|
||||
echo '"separator","spellcheck",';
|
||||
} ?>
|
||||
"separator", "htmlmode", "separator", "popupeditor"]
|
||||
@ -229,7 +229,7 @@ HTMLArea.Config = function () {
|
||||
clean: [ "Clean Word HTML", "ed_wordclean.gif", false, function(e) {e.execCommand("killword"); }],
|
||||
lefttoright: [ "Direction left to right", "ed_left_to_right.gif", false, function(e) {e.execCommand("lefttoright");} ],
|
||||
righttoleft: [ "Direction right to left", "ed_right_to_left.gif", false, function(e) {e.execCommand("righttoleft");} ],
|
||||
<?php if (!empty($CFG->aspellpath) && !empty($CFG->editorspelling)) {
|
||||
<?php if (!empty($CFG->aspellpath) && file_exists($CFG->aspellpath) && !empty($CFG->editorspelling)) {
|
||||
echo 'spellcheck: ["Spell-check", "spell-check.gif", false, spellClickHandler ],'."\n";
|
||||
}?>
|
||||
insertsmile: ["Insert Smiley", "em.icon.smile.gif", false, function(e) {e.execCommand("insertsmile");} ],
|
||||
|
Loading…
x
Reference in New Issue
Block a user