Roundcube Community Forum

 

Spell checker HTML

Started by jeffshead, October 05, 2008, 09:50:17 PM

Previous topic - Next topic

jeffshead

Just installed 'Version 0.2-beta released 2008/09/21'.

When composing a HTML e-mail, I came across an alert/error when attempting to use the spell checker functionality of tinyMCE:



Looking at the paths in the alert, it looks like they are wrong. For one thing, there is no 'spellcheckerprogram' folder.

I found the 'iniset.php' file in ..\program\include.

The ..\program\js\tiny_mce\plugins\spellchecker\config.php file contains the following:

/** start RoundCube specific code */

define('INSTALL_PATH', preg_replace('/program\/js\/.+$/', '', getcwd()));
require_once INSTALL_PATH . 'program/include/iniset.php';


There is more code in the file, but I think the code above may have something to do with the incorrect paths in the alert.

Any ideas?

UPDATE:
I manually changed the path to the 'iniset.php' file, but it lead to me changing the paths to several other files. After fixing a path, it lead to another file that needed a path changed and so on and so on... I stopped after changing half a dozen paths.

So there is an issue with paths.

jeffshead

It's been fixed.

Go to ../program/js/tiny_mce/plugins/spellchecker/config.php

Change the following line from:
define('INSTALL_PATH', preg_replace('/program\/js\/.+$/', '', getcwd()));

To:
define('INSTALL_PATH', preg_replace('/program[\\\\\/]js[\\\\\/].+$/', '', getcwd()));