Author Topic: Spell checker HTML  (Read 2664 times)

Offline jeffshead

  • Full Member
  • ***
  • Posts: 71
Spell checker HTML
« on: October 05, 2008, 09:50:17 PM »
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:

Code: [Select]
/** 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.
« Last Edit: October 05, 2008, 10:32:37 PM by jeffshead »

Offline jeffshead

  • Full Member
  • ***
  • Posts: 71
Spell checker HTML
« Reply #1 on: October 06, 2008, 07:48:56 AM »
It's been fixed.

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

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

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