registerButton('save', 'Save',
'do_save();', '##buttonURL##save.gif', 22, 22,
'savehandler');
$editor->addRegisteredButton('save', 'before:print' );
$editor->addJSButtonStateHandler ('savehandler', 'function (EDITOR,srcElement,cid,inTable,inA,range){
return "wproReady";
}');
$editor->registerButton('cancel', 'Cancel',
'do_abort();', '##buttonURL##close.gif', 22, 22,
'cancelhandler');
$editor->addRegisteredButton('cancel', 'before:print' );
$editor->addJSButtonStateHandler ('cancelhandler', 'function (EDITOR,srcElement,cid,inTable,inA,range){
return "wproReady";
}');
$editor->theme = 'blue';
$editor->addJSEditorEvent('load', 'function(editor){editor.fullWindow();setHtmlFilters(editor);}');
$editor->baseURL = "http://www.yaddoart.com/";
$editor->loadValueFromFile('/home/yaddo/public_html/hza008.html');
$editor->registerSeparator('savecan');
// add a spacer:
$editor->addRegisteredButton('savecan', 'after:cancel');
//$editor->set_charset('iso-8859-1');
$editor->mediaDir = '/home/yaddo/public_html/';
$editor->mediaURL = 'http://www.yaddoart.com/';
$editor->imageDir = '/home/yaddo/public_html/';
$editor->imageURL = 'http://www.yaddoart.com/';
$editor->documentDir = '/home/yaddo/public_html/';
$editor->documentURL = 'http://www.yaddoart.com/';
$editor->emoticonDir = '/home/yaddo/public_html/.smileys/';
$editor->emoticonURL = 'http://www.yaddoart.com/.smileys/';
$editor->loadPlugin('serverPreview');
$editor->plugins['serverPreview']->URL = 'http://www.yaddoart.com/.wysiwygPro_preview_cc3ef74800d70dec56aa26e5dfc8882a.php?randomId=ISZC0OOj5fBS21Khe8JC7Z4aAWrmfzav7BrZSpJENzBe3boqTGHpkpl_yzkt8nyTdVLF2W8LXaghHLFxqkTFKchKfkgaDMiUIpXxw0srJhUiZ7HLTNTP9yAOiYzxjjaD4UQr0XyxlHk34z__eWHbuWziNrB7uIYWqRifVJn0Gt_7ZBZcYIGXNmqmlmegW8epw0XNFtV42zLfHYb60_fFxdtQx0xJxJovpNmjc99sm4ghfKZMYDQrSDaDipQBspeD';
// print the editor to the browser:
$editor->htmlCharset = 'iso-8859-1';
$editor->display('100%','450');
?>