MDL-33041 cleanup spellchecker plugin

This commit is contained in:
Petr Škoda 2012-08-11 15:55:43 +02:00
parent 383d67f80b
commit 51e95db375
5 changed files with 22 additions and 16 deletions

View file

@ -24,14 +24,11 @@
require('../../../../../config.php');
@error_reporting(E_ALL ^ E_NOTICE); // hide notices even if Moodle is configured to show them
@error_reporting(E_ALL ^ E_NOTICE); // Hide notices even if Moodle is configured to show them.
// General settings
$config['general.engine'] = get_config('editor_tinymce', 'spellengine') ?
get_config('editor_tinymce', 'spellengine') : 'GoogleSpell';
//$config['general.engine'] = 'PSpell';
//$config['general.engine'] = 'PSpellShell';
//$config['general.remote_rpc_url'] = 'http://some.other.site/some/url/rpc.php';
// GoogleSpell settings
$config['GoogleSpell.proxyhost'] = isset($CFG->proxyhost) ? $CFG->proxyhost : '';
@ -51,8 +48,4 @@ if ($config['general.engine'] === 'PSpell' || $config['general.engine'] === 'PSp
$config['PSpellShell.mode'] = PSPELL_FAST;
$config['PSpellShell.aspell'] = $CFG->aspellpath;
$config['PSpellShell.tmp'] = '/tmp';
// Windows PSpellShell settings
//$config['PSpellShell.aspell'] = '"c:\Program Files\Aspell\bin\aspell.exe"';
//$config['PSpellShell.tmp'] = 'c:/temp';
}

View file

@ -23,3 +23,5 @@
*/
$string['pluginname'] = 'Check spelling';
/* This plugin abuses strings from the standard TinyMCE spellchecker plugin, there is no need to duplicate them here. */

View file

@ -0,0 +1,11 @@
This is a modification of php spellchecker plugin by Moxiecode Systems AB,
see https://github.com/tinymce/tinymce_spellchecker_php
List of changes:
* Add support for curl proxy when accessing Google spell service.
* Workaround for error() function collisions.
* Modified config file to use moodle $CFG.
* Moved static files to /tinymce/ subfolder.
Commits:
https://github.com/moodle/custom-tinymce_spellchecker_php/commits/MOODLE_22_2.0.6b