Re: ToFullPage/FromFullPage (F12) does not restore editor position?

  •  05-07-2007, 8:13 PM

    Re: ToFullPage/FromFullPage (F12) does not restore editor position?

    I think this was working OK in V5.3, but not 6.0, so we added code to actually position the DIV container (divEditor) for the Editor, like the following:
     
        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;
        }
     
    HTH
    Fred
View Complete Thread