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