function editorArea($name, $content, $hiddenField, $width, $height, $col, $row) { global $mosConfig_absolute_path; $content = str_replace("<", "<", $content); $content = str_replace(">", ">", $content); $content = str_replace("&", "&", $content); $content = str_replace(" ", " ", $content); $content = str_replace(""", "\"", $content); // include the config file and editor class: include_once $mosConfig_absolute_path . '/editor/wysiwygpro/config.php'; include_once $mosConfig_absolute_path . '/editor/wysiwygpro/editor_class.php'; // create a new instance of the wysiwygPro class: $name = new wysiwygPro(); $name->set_name($hiddenField); if ($hiddenField == 'fulltext') { $name->subsequent(true); } $name->usep(true); // insert some HTML $name->set_code($content); // print the editor to the browser: $name->print_editor('100%', intval($height)); }