Server Preview Demo
Server preview demo
This demo shows off WysiwygPro's ability to offload previews to a server script to perform parsing of dynamic template syntax or to display the content as it would appear within a site template. You can use this feature to display a more acurate preview.
In this demo we have created a preview script that will preview the content within the design of this website. To see this switch to preview view. You might like to try out the "Full Window" button to see the Preview better.
Source code:
<?php
include_once('/wysiwygPro/wysiwygPro.class.php');
// create a new WysiwygPro instance
$editor = new wysiwygPro();
// load base configuration
$editor->loadPlugin('demoConfig');
// give the editor a name
$editor->name = 'demo';
// load and configure the server preview plugin
$editor->loadPlugin('serverPreview');
$editor->plugins['serverPreview']->URL = 'preview.php';
$editor->fullURLs = true;
// display the editor
$editor->display(700, 400);
?>
We are using a plugin "demoConfig" to apply shared configuration settings such as the file manager configuration. See the source code for this plugin.
WysiwygPro version 3.2.1