<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="ja">
<head>
<$charset>
<$icon>
<title>プレビュー</title>
</head>
<$script src="/owwg/wysiwyg-popup-min.js">
<$style src="/owwg/wysiwyg.css">

<script type="text/javascript">

function preview() {    
    // get params
    var n = WYSIWYG_Popup.getParam('wysiwyg');
    // get content
    WYSIWYG_Table.disableHighlighting(n);
    var content = WYSIWYG.getEditorWindow(n).document.body.innerHTML;
    WYSIWYG_Table.refreshHighlighting(n);
    content = content.replace(/src="([^/|^http|^https])/gi, "src=\"../$1"); // correct relative image path
    content = content.replace(/href="([^/|^http|^https|^ftp])/gi, "href=\"../$1"); // correct relative anchor path
    // set content
    document.body.innerHTML = content;
}
</script>

<body onLoad="preview();">
</body>
</html> 

