Initial commit as of 2018-10-16
This commit is contained in:
30
assets/js/tinymce/plugins/spellchecker/spellchecker.php
Normal file
30
assets/js/tinymce/plugins/spellchecker/spellchecker.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/**
|
||||
* spellcheck.php
|
||||
*
|
||||
* Copyright, Moxiecode Systems AB
|
||||
* Released under LGPL License.
|
||||
*
|
||||
* License: http://www.tinymce.com/license
|
||||
* Contributing: http://www.tinymce.com/contributing
|
||||
*/
|
||||
|
||||
require('./includes/Engine.php');
|
||||
require('./includes/EnchantEngine.php');
|
||||
require('./includes/PSpellEngine.php');
|
||||
|
||||
$tinymceSpellCheckerConfig = array(
|
||||
"engine" => "enchant", // enchant, pspell
|
||||
|
||||
// Enchant options
|
||||
"enchant_dicts_path" => "./dicts",
|
||||
|
||||
// PSpell options
|
||||
"pspell.mode" => "fast",
|
||||
"pspell.spelling" => "",
|
||||
"pspell.jargon" => "",
|
||||
"pspell.encoding" => ""
|
||||
);
|
||||
|
||||
TinyMCE_Spellchecker_Engine::processRequest($tinymceSpellCheckerConfig);
|
||||
?>
|
Reference in New Issue
Block a user