spaw editor - problem
spaw editor - problem
spaw editor has code from "lang_data.inc.php" in summary: block (above spaw toolbar)
-and- in image library dialog window:
-and- in image library dialog window:
Hi Dexxus,
did you already made an entry in the SourceForge Bugtracker at
http://sourceforge.net/tracker/?group_i ... tid=607698
??
If not, please do so.
Thanks.
Joachim
did you already made an entry in the SourceForge Bugtracker at
http://sourceforge.net/tracker/?group_i ... tid=607698
??
If not, please do so.
Thanks.
Joachim
-
- Posts: 35
- Joined: Fri 27. May 2005, 11:45
-
- Posts: 35
- Joined: Fri 27. May 2005, 11:45
@ DeXXus and Ben,
Like I previously posted I have same error. I did solve it for myself. Please take a look at include/inc_lib/wysiwyg.editor.inc.php at line 57. Here the SPAW editor is loaded. When I looked at the files on my server, de SPAW editor wasn't loaded at all. I think my problem has to be found in copying the files to the server. The code should be:
The faulty code was:
I downloaded the latest files and uploaded the new wysiwyg.editor.inc.php.
Problem fixed. Please let me know if this fixes your problems.
Like I previously posted I have same error. I did solve it for myself. Please take a look at include/inc_lib/wysiwyg.editor.inc.php at line 57. Here the SPAW editor is loaded. When I looked at the files on my server, de SPAW editor wasn't loaded at all. I think my problem has to be found in copying the files to the server. The code should be:
Code: Select all
//load spaw editor
case 3:
case 4:
case 5:
include_once(PHPWCMS_ROOT."/include/inc_ext/spaw/spaw_control.class.php") ;
$sw = new SPAW_Wysiwyg( $wysiwyg_editor['field'],
$wysiwyg_editor['value'],
$wysiwyg_editor['lang'],
$wysiwyg_spaw_template,
'default',
$wysiwyg_editor['width'],
$wysiwyg_editor['height']
);
$sw->show();
break;
Code: Select all
//load spaw editor
case 3:
case 4:
case 5:
break;
I downloaded the latest files and uploaded the new wysiwyg.editor.inc.php.
Problem fixed. Please let me know if this fixes your problems.
@Quizmaster & Ben
Sorry I forgot to make it back to this thread.
The solution was to change the "-" (dashes <--typo) to "_" (underscores):
IN "20060904_phpwcms_1.2.8_patchE.zip" (and/or) "20060905_phpwcms_1.2.8.zip" :SHOULD BE:
Sorry I forgot to make it back to this thread.
The solution was to change the "-" (dashes <--typo) to "_" (underscores):
IN "20060904_phpwcms_1.2.8_patchE.zip" (and/or) "20060905_phpwcms_1.2.8.zip" :
Code: Select all
//load spaw editor
case 3:
case 4:
case 5:
// first do a check if translation for given language exists
$spaw_language_check = strtolower(str_replace('-', '', $phpwcms['charset']));
$wysiwyg_editor['lang'] = strtolower($wysiwyg_editor['lang']);
$spaw_language_folder = $wysiwyg_editor['lang'].'-'.$spaw_language_check;
$spaw_language_file = $wysiwyg_editor['lang'].'-'.$spaw_language_check.'_lang_data.inc.php';
Code: Select all
//load spaw editor
case 3:
case 4:
case 5:
// first do a check if translation for given language exists
$spaw_language_check = strtolower(str_replace('_', '', $phpwcms['charset']));
$wysiwyg_editor['lang'] = strtolower($wysiwyg_editor['lang']);
$spaw_language_folder = $wysiwyg_editor['lang'].'_'.$spaw_language_check;
$spaw_language_file = $wysiwyg_editor['lang'].'_'.$spaw_language_check.'_lang_data.inc.php';
Last edited by DeXXus on Wed 20. Sep 2006, 22:18, edited 1 time in total.