You are here: start » tinymce

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tinymce [2018/01/03 12:49]
Christoph M. Becker Document browser spellchecking
tinymce [2018/01/04 18:51]
Christoph M. Becker [Spellchecking] Fix installation instructions
Line 38: Line 38:
 You likely have noticed the browser'​s spellchecking in action elsewhere (for instance, in simple textareas), and it is supposed to work the same in TinyMCE, namely that all unknown (and therefore potentially misspelled) words are highlighted with a squiggly underline). Depending on the browser this solution may already be sufficient for your purposes. It might, however, be insufficient for multilingual sites. You likely have noticed the browser'​s spellchecking in action elsewhere (for instance, in simple textareas), and it is supposed to work the same in TinyMCE, namely that all unknown (and therefore potentially misspelled) words are highlighted with a squiggly underline). Depending on the browser this solution may already be sufficient for your purposes. It might, however, be insufficient for multilingual sites.
  
-FIXME explain usage of the PHP Spellchecker component.+If the browser'​s built-in spellchecker is not sufficient for your purposes, you can use the PHP Spellchecker component ​which requires the PHP Enchant extension to be available (check Settings -> Info -> PHP info). Then: 
 + 
 +  * Download the [[http://​download.moxiecode.com/​spellcheckers/​tinymce_spellchecker_php_4.0.zip|TinyMCE Spellchecker for PHP package]] 
 +  * Unzip it into ''​plugins/​tinymce4/​tinymce/​plugins/​spellchecker/'',​ so that there is ''​plugins/​tinymce4/​tinymce/​plugins/​spellchecker/​spellchecker.php''​ etc. 
 +  * Change line 20 in ''​plugins/​tinymce4/​tinymce/​plugins/​spellchecker/​spellchecker.php''​ to ''"​enchant_dicts_path"​ => realpath("​./​dicts"​),''​ 
 +  * Download word lists for the desired languages and put them into ''​plugins/​tinymce4/​tinymce/​plugins/​spellchecker/​dicts/''​. For each language two files are required which are named ''​en_US.dic''​ and ''​en_US.aff'',​ for instance. Quite useable word lists are distributed by the OpenOffice project, for example for [[https://​extensions.openoffice.org/​en/​project/​us-english-spell-checking-dictionary|American English]] and [[https://​extensions.openoffice.org/​en/​project/​german-de-de-frami-dictionaries|German]]. You can download the extensions, unzip them (the file extension is ''​oxt'',​ but they are actually ZIP files); somewhere in the unpacked archive you'll find the desired files. 
 +  * Finally add the ''​spellchecker''​ tool button to the desired ''​toolbarX''​ in your init file, and also add the following line: 
 +<​code=php>​spellchecker_rpc_url:​ '​spellchecker.php',</​code>​ 
 + 
 +The actual usage of the spellchecker is supposed to be pretty much self explaining.
 
You are here: start » tinymce
Except where otherwise noted, content on this wiki is licensed under the following license: GNU Free Documentation License 1.3
Valid XHTML 1.0 Valid CSS Driven by DokuWiki