Hi, I’m trying to use the WYSIWYG_EDITOR script to update content on a page to update a database, getting one WYSIWYG_EDITOR to pull in content is fine, but I seem to get "Toolbar set "WBToolbar" doesn't exist" or just a PHP STOP if I try and include two... the code below displays one fine.
Any suggestions?:
$content = $fetch_item['short_description'];
$name = "description";
$id = "short_description";
$width = "98%";
$height = "400px";
if (!defined('WYSIWYG_EDITOR') OR WYSIWYG_EDITOR=="none" OR !file_exists(WB_PATH.'/modules/'.WYSIWYG_EDITOR.'/include.php')) {
function show_wysiwyg_editor($name,$id,$content,$width,$height) {
echo '<textarea name="'.$name.'" id="'.$id.'" style="width: '.$width.'; height: '.$height.';">'.$content.'</textarea>';
}
} else {
$id_list=array("description");
require(WB_PATH.'/modules/'.WYSIWYG_EDITOR.'/include.php');
}
show_wysiwyg_editor($name,$id,$content,$width,$height);
So has anyone got a way of having to WYSIWYG fileds, i.e. FCKModules on the same page?
Thanks