Jump to content

Recommended Posts

Posted

Spell checking works in other contexts in Chrome but is missing in TinyMCE in Chrome, so I think the browsers spell checker is not allowed in to the TinyMCE textarea (at least this is what seems to be happening here in Mac Chrome).

Posted

Hi Alan,

Right, I see. Sounds like they must have spellcheck="false" on that textarea/iframe or whatever it uses. Isn't there an TinyMCE plugin for spellchecking?

  • 2 months later...
Posted

Bump, just to say that I did go ahead and install the spellcheck plugin for TinyMCE and once I'd figured out how to add it to a textarea, it seems to work fine.

Two small points,

Firstly, it works on a per field basis (this is probably intended and useful) it just means you have to go into the Field settings for each textarea and add spellchecker as a plugin and a button.

Also by default it is off, so you have to remember to click it on before you get those lovely squiggly lines!

Finally, @Ryan, is this a contender to be included in the default install? I can see it being pretty useful for end users to be able to spellcheck their copy and can't think the plugin adds that much overhead?

Posted

You can since latest version of InputfieldTinyMCE add custom plugins from within outside core. It has a field "Third Party plugins" you can enter name and path to plugin , and put plugin for example into a folder /site/tinymce/...

I'm not sure about adding it to the core. Since it also is a browser feature, and the plugin doesn't seem to have localized feature (most important)

  • Like 1
Posted

Hi Soma,

Isn't that pretty much the same as installing the plugin in wire/modules/inputfield/inputtinymce/plugins?

If you're fine with updating it with every PW core update, yes.

  • 10 months later...
Posted

You can since latest version of InputfieldTinyMCE add custom plugins from within outside core. It has a field "Third Party plugins" you can enter name and path to plugin , and put plugin for example into a folder /site/tinymce/...

I'm not sure about adding it to the core. Since it also is a browser feature, and the plugin doesn't seem to have localized feature (most important)

Thanks, I just implemented this and it works like a charm.

  • Like 1
  • 3 months later...
Posted

Looks like spellcheck no longer works. I've got some obvious ones in there but it fails to find any errors and continually says "no misspellings found"

  • Like 1
Posted

Anyone else using the spellchecker with TinyMCE that knows how to fix this? I've not used TinyMCE's spellchecker yet, though will have to try it out. 

Mike, if we can't get TinyMCE's spellchecker working, we can switch you to CKEditor with Scayt (spell-checker-as-you-type) which seems to work pretty well. 

Posted

I have this problem on a recent site - the spell check in TinyMCE doesn't work at all; i will check some older sites and see if those still work.

Posted

Experienced the same on a local installation: spell check in TinyMCE doesn't work anymore... Seems like something has changed in the background?

Posted

That's what I'm wondering too–potential JS errors. 

Mike, with your permission, I'll check your site to see if I can spot anything obvious. Installing CKEditor may be a good idea, but since you and your editors are already used to TinyMCE it probably makes sense for us to try and debug it first. 

  • 2 weeks later...
Posted

That's what I'm wondering too–potential JS errors. 

Mike, with your permission, I'll check your site to see if I can spot anything obvious. Installing CKEditor may be a good idea, but since you and your editors are already used to TinyMCE it probably makes sense for us to try and debug it first. 

Please go ahead. Thanks Ryan.

Posted

It turns out that the default spelling service used by TinyMCE's spellchecker, GoogleSpell, has been discontinued. That's why everyone's spellcheckers stopped working. You can fix it by editing the config.php file included in your /site/tinymce/spellchecker/config.php file. 

Comment out the line referring to GoogleSpell and uncomment the line referring to PSpell or PSpellShell:

// General settings
//$config['general.engine'] = 'GoogleSpell';
//$config['general.engine'] = 'PSpell';
$config['general.engine'] = 'PSpellShell';
Use PSpell if your PHP has the PSpell module installed (you can check from phpinfo). Mine did not have it installed, so I used PSpellShell. 
 
If using PSpellShell: 
 
Check that this line (also in the config.php) points to the location of your "aspell": 
$config['PSpellShell.aspell'] = '/usr/bin/aspell';
You can determine the location by typing this in the shell:
which aspell

It will return the path where it is installed. After updating your config.php, double check that aspell works by typing this in the shell:

echo "This file has a misspellling can you tell which word it is?" > test.txt
aspell -c test.txt

In most cases it should work and your TinyMCE spellchecker should start working again. If you get an error, then you may need to do more, like install a language-specific dictionary file (which you may need to ask your webhost to do). 

  • Like 3
  • 11 years later...
Posted

Bump for 2024. Is there any way to get TinyMCE Spellcheck plugin functionality in PW? The spellchecker does not seem to be active within textarea of TinyMCE using the latest Vivaldi browser.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...