In Version 6.0, initialization and other Editor events are handled by adding script at the bottom of the page (in the example below, the code is between </form> and </body>). We've mapped the calls to and from full page into the CuteEditor_OnCommand event as you can see in the below code:
</form>
<script language="JavaScript" type="text/javascript">
var editor1=document.getElementById('Editor1');
if(editor1.IsReady) {
CuteEditor_OnInitialized(editor);
}
function CuteEditor_OnChange(editor)
{
document.getElementById("txtChanged").value="Y";
}
function CuteEditor_OnCommand(editor,command,ui,value)
{
//handle the command by yourself
var cuteEditor1 = document.getElementById('Editor1');
var sCmd = command.toLowerCase();
try {
if (sCmd=="tofullpage") {
try {
document.getElementById("tdMenu").style.visibility="hidden";
document.getElementById("pnlInfo").style.visibility="hidden";
document.getElementById("pnlJSMenu").style.visibility="hidden";
document.getElementById("divEditor").style.left="-97px";
document.getElementById("divEditor").style.top="-2px";
}
catch (error) {
alert(error.message);
}
cuteEditor1.FullPage=true;
event.returnValue=true;
}
if (sCmd=="fromfullpage") {
try {
document.getElementById("tdMenu").style.visibility="visible";
document.getElementById("pnlInfo").style.visibility="visible";
document.getElementById("pnlJSMenu").style.visibility="visible";
document.getElementById("divEditor").style.left="8px";
document.getElementById("divEditor").style.top="92px";
}
catch (error) {
alert(error.message);
}
cuteEditor1.FullPage=false
event.returnValue=true;
}
}
catch (error) {
alert(error.message);
}
}
function CuteEditor_OnInitialized(editor)
{
editor1.ExecCommand=function(cmd,ui,val)
{
}
}
</script>
</body>
</HTML>
Does that make sense to you?
Regards,
Fred