spaw editor - problem
Posted: Wed 6. Sep 2006, 07:18
The phpwcms support forum will help to find answers to your questions. The small but strong community is here since more than 10 years.
https://forum.phpwcms.org/
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;
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';