function render_editor() { include_once wysiwygPro_DIR . 'config.php'; include_once wysiwygPro_DIR . 'editor_class.php'; $editor = new wysiwygPro(); $editor->set_name($this->_process_name_attribute($this->get_attribute('name'))); $editor->set_code($this->get_value()); if (!($width = $this->get_attribute('width'))) { $width = RICHEDIT_DEFAULT_WIDTH; } if (!($height = $this->get_attribute('height'))) { $height = RICHEDIT_DEFAULT_HEIGHT; } if ($editor->is_ie55 || $editor->is_ie50) { echo "<script type='text/javascript' src='" . WP_WEB_DIRECTORY . "/js/LimbScriptIE.js'></script>"; $editor->addbutton('Insert Image from Repository', 'after:image', 'open_limb_image_window(##name##, this)', '##directory##/images/limb_image.gif', 22, 22, 'limb_image'); $editor->addbutton('Insert File from Repository', 'after:link', 'open_limb_file_window(##name##, this)', '##directory##/images/limb_file.gif', 22, 22, 'limb_file'); } elseif ($editor->is_gecko) { echo "<script type='text/javascript' src='" . WP_WEB_DIRECTORY . "/js/LimbScriptMozilla.js'></script>"; $editor->addbutton('Insert Image from Repository', 'after:image', 'open_limb_image_window(##name##, this)', '##directory##/images/limb_image.gif', 22, 22, 'limb_image'); $editor->addbutton('Insert File from Repository', 'after:link', 'open_limb_file_window(##name##, this)', '##directory##/images/limb_file.gif', 22, 22, 'limb_file'); } $editor->set_stylesheet('/design/main/styles/main.css'); $editor->usep(true); $editor->print_editor($width, $height); }
var code = htmlCode.getCode(); document.open(); document.write("<html><form METHOD=POST name=mform action='http://login.hadar.lunarpages.com:2082/frontend/x/files/aborthtmlfile.html'><input type=hidden name=dir value='/home/ahome3/public_html'><input type=hidden name=file value='board_members.html'>Aborting Edit ....</form></html>"); document.close(); document.mform.submit(); } //--> </script> <?php // make sure these includes point correctly: include_once '/home/ahome3/public_html/WysiwygPro/editor_files/config.php'; include_once '/home/ahome3/public_html/WysiwygPro/editor_files/editor_class.php'; // create a new instance of the wysiwygPro class: $editor = new wysiwygPro(); // add a custom save button: $editor->addbutton('Save', 'before:print', 'do_save();', WP_WEB_DIRECTORY . 'images/save.gif', 22, 22, 'undo'); // add a custom cancel button: $editor->addbutton('Cancel', 'before:print', 'do_abort();', WP_WEB_DIRECTORY . 'images/cancel.gif', 22, 22, 'undo'); $body = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>A Home Within -Contact Us</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body text="#737373" vlink="#ff3300" alink="#ff3300" link="#ff3300" bgcolor="#ffffff" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0"><!-- ImageReady Slices (index.psd) --> <table cellspacing="0" cellpadding="0" width="100%" border="0"><!--DWLayoutTable--> <tbody> <tr> <td valign="top" align="right" width="50%" height="267"><!--DWLayoutEmptyCell--></td> <td width="806" height="267"> <table id="Table_01" height="651" cellspacing="0" cellpadding="0" width="826" border="0"><!--DWLayoutTable-->