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 = ' Untitled '; $editor->set_code($body); // add a spacer: $editor->addspacer('', 'after:cancel'); $editor->set_charset('iso-8859-1'); // print the editor to the browser: $editor->print_editor('100%','450'); ?>