Dear doubter,
Please refer to the following example:
<?php include_once("cuteeditor_files/include_CuteEditor.php") ; ?>
<html>
<head>
</head>
<body>
<form name="theForm" action="Edithtml.php?postback=true" method="post">
<?php
$editor=new CuteEditor();
$editor->ID="Editor1";
// $editor->EditorBodyStyle="font:normal 12px arial;";
$editor->EditorWysiwygModeCss="php.css";
$editor->EditCompleteDocument=true;
if (@$_GET["postback"]!="true")
{
$editor->LoadHTML("document.html");
$editor->Draw();
}
else
{
$editor->SaveFile("document.html");
$editor->Draw();
}
$editor=null;
//use $_POST["Editor1"]to retrieve the data
?>
<script type="text/javascript">
//Please replace the following regular expression with your own one and implement your requirement
function CuteEditor_FilterHTML(editor,code)
{
return code.replace(/(<form[^\>]*\>)([\s\S]*)(\<\/form\>)/i, "$2");
}
function CuteEditor_FilterCode(editor,code)
{
return code.replace(/(<form[^\>]*\>)([\s\S]*)(\<\/form\>)/i, "$2");
}
</script>
</body>
</html>
Thank you for asking