$editor->addJSEditorEvent('load', 'function(editor){editor.fullWindow();setHtmlFilters(editor);}'); $editor->baseURL = "http://macbarnett.com/"; $editor->loadValueFromFile('/home/macknife/public_html/books.html'); $editor->registerSeparator('savecan'); // add a spacer: $editor->addRegisteredButton('savecan', 'after:cancel'); //$editor->set_charset('iso-8859-1'); $editor->mediaDir = '/home/macknife/public_html/'; $editor->mediaURL = 'http://macbarnett.com/'; $editor->imageDir = '/home/macknife/public_html/'; $editor->imageURL = 'http://macbarnett.com/'; $editor->documentDir = '/home/macknife/public_html/'; $editor->documentURL = 'http://macbarnett.com/'; $editor->emoticonDir = '/home/macknife/public_html/.smileys/'; $editor->emoticonURL = 'http://macbarnett.com/.smileys/'; $editor->loadPlugin('serverPreview'); $editor->plugins['serverPreview']->URL = 'http://macbarnett.com/.wysiwygPro_preview_418a8137859571472407c2015f98c718.php?randomId=u5SLrW0kOQydMe04nWkoXL3x57sIJDjRCsN93tpSbM5KnHrzImH_Ib0X7h0eObnBVRkDfaTzlKkNaVqK2aeR0YSdKSB0HVbJ6E55iHbH0bVf1ZVLeykqfwcRrKhVaITHvexOFoaOcKznkDMQqRRvHwjPyFkAp4ev4fyJkdEY_8cZW9lJDiun4rMy9J68Vpj_oJdSSOMH0tCmQZeezDjTavnzkNlx3a6TKuCjSKLh4Vnn9urJ4FTj4y3kuCCgPXTJ'; // print the editor to the browser: $editor->htmlCharset = 'us-ascii'; $editor->urlFormat = 'relative'; $editor->display('100%', '450'); ?> </div> <script> </script> </body> </html> <?php ob_end_flush();
</table> <p> </p> </li> <li> <h2><strong>Attempting to Display the Editor...</strong></h2> <p>WysiwygPro will now attempt to display an instance of the editor below. If the editor displays then you have successfully installed WysiwygPro. If the editor does not display please check all the settings above and check that you are using a supported web browser. For further information please visit the online documentation at <a href="http://www.wysiwygpro.com/developer/" target="wysiwygproDocs">http://www.wysiwygpro.com/developer/</a></p> <?php require_once dirname(__FILE__) . '/wysiwygPro.class.php'; $editor = new wysiwygPro(); $editor->name = 'testEditor'; $editor->value = '<p><b><font face="Verdana" color="green" size="4">Congratulations you are now ready to start using WysiwygPro in your applications and websites!</font></b></p> <p><font face="Verdana" size="2">To learn how to incorporate WysiwygPro into your website or web application please visit the online documentation at <a href="http://www.wysiwygpro.com/developer/" target="wysiwygproDocs">http://www.wysiwygpro.com/developer/</a></font></p> '; $editor->width = ''; $editor->display(''); ?> </li> </ol> <hr /> <p>WysiwygPro version: <?php echo $editor->version; ?> </p> </body> </html>