stnvh/silverstripe-cmsspellchecker

Add TinyMCE Spell checking functionality without having to edit core

1.1.4 2014-11-19 10:42 UTC

This package is not auto-updated.

Last update: 2024-03-26 00:43:30 UTC


README

Latest Stable Version License

Add TinyMCE spell checker support without having to edit core. Uses the config API to set options.

Tested and working on versions 3.1 down to 2.4.

By Stan Hutcheon - Bigfork Ltd

Installation:

Composer:

composer require "stnvh/silverstripe-cmsspellchecker" "~1"

Download:

Clone this repo into a folder called cmsspellchecker in your silverstripe installation folder.

Usage:

This assumes you have pspell installed or the aspell binary installed on your webserver.

If you have the pspell module installed it should work straight away. If you have just the binary installed, then you'll need to add something like below to mysite/_config/config.yml:

CMSSpellChecker:
  engine: 'PSpellShell'
  shell: '/usr/local/bin/aspell'

For pre Silverstripe 3.0, set config via method calls:

mysite/_config.php:

CMSSpellChecker::set_engine('PSpellShell');
CMSSpellChecker::set_shell('/usr/local/bin/aspell');

Options:

engine:
  • PSpell (default)
  • PSpellShell
  • EnchantSpell
shell:
  • (used with PSpellShell, specifies where aspell is located on the server, default /usr/bin/aspell)

After installing via composer, you must /dev/build