mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-33041 cleanup spellchecker plugin
This commit is contained in:
parent
383d67f80b
commit
51e95db375
5 changed files with 22 additions and 16 deletions
|
@ -17,21 +17,18 @@
|
|||
/**
|
||||
* Spellchecker configuration. (Has been rewritten for Moodle.)
|
||||
*
|
||||
* @package tinymce_spellchecker
|
||||
* @package tinymce_spellchecker
|
||||
* @copyright 2012 The Open University
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
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';
|
||||
}
|
||||
|
|
|
@ -17,9 +17,11 @@
|
|||
/**
|
||||
* Strings for Moodle Media plugin.
|
||||
*
|
||||
* @package tinymce_spellchecker
|
||||
* @package tinymce_spellchecker
|
||||
* @copyright 2012 The Open University
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
$string['pluginname'] = 'Check spelling';
|
||||
|
||||
/* This plugin abuses strings from the standard TinyMCE spellchecker plugin, there is no need to duplicate them here. */
|
||||
|
|
|
@ -20,9 +20,9 @@ defined('MOODLE_INTERNAL') || die();
|
|||
* Plugin for spell checking (Moodle custom replacement for standard TinyMCE
|
||||
* plugin, but with same name, which seems a bit unhelpful).
|
||||
*
|
||||
* @package tinymce_spellchecker
|
||||
* @package tinymce_spellchecker
|
||||
* @copyright 2012 The Open University
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class tinymce_spellchecker extends editor_tinymce_plugin {
|
||||
protected function update_init_params(array &$params, context $context,
|
||||
|
|
11
lib/editor/tinymce/plugins/spellchecker/readme_moodle.txt
Normal file
11
lib/editor/tinymce/plugins/spellchecker/readme_moodle.txt
Normal 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
|
|
@ -17,9 +17,9 @@
|
|||
/**
|
||||
* TinyMCE spellchecker plugin version details.
|
||||
*
|
||||
* @package tinymce_spellchecker
|
||||
* @package tinymce_spellchecker
|
||||
* @copyright 2012 The Open University
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue