Simone: WYSIWYG Editor 1.0 Variable nach PhP

Beitrag lesen

Hallo
Ich stehe vor folgenden Problem
wie kann ich aus den WYSIWYG Editor 1.0
den Text den ich dort erstellt habe
in einer Variable an eine Php Funktion übergeben ?

Wer kann helfen
Simone

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML><HEAD><TITLE>WYSIWYG Editor 1.0</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1"><LINK
media=screen href="WYSIWYG Editor 1_0-Dateien/example3.css" type=text/css
rel=stylesheet>
<SCRIPT language=JavaScript type=text/javascript>
<!--
var modus = "WYSIWYG"

function init()
{
iBody.document.designMode = 'On';
}

function makeBold(id)
{
iBody.focus();
iBody.document.execCommand('bold', false, null);
}

function makeItalic()
{
iBody.focus();
iBody.document.execCommand('italic', false, null);
}

function makeUnderline()
{
iBody.focus();
iBody.document.execCommand('underline', false, null);
}

function createLink()
{
iBody.focus();
iBody.document.execCommand('createlink', true, null);
}

function insertUnorderedList()
{
iBody.focus();
iBody.document.execCommand('insertUnorderedList', false, null);
}

function insertOrderedList()
{
iBody.focus();
iBody.document.execCommand('insertOrderedList', false, null);
}

function justifyLeft()
{
iBody.focus();
iBody.document.execCommand('justifyLeft', false, null);
}

function justifyCenter()
{
iBody.focus();
iBody.document.execCommand('justifyCenter', false, null);
}

function justifyRight()
{
iBody.focus();
iBody.document.execCommand('justifyRight', false, null);
}

function openPalette()
{
document.getElementById('colorTable').style.visibility="visible";
}

function changeForeColor(hexColor)
{
document.getElementById('colorTable').style.visibility="hidden";
iBody.focus();
iBody.document.execCommand('foreColor', true, hexColor);
}

function toggleModus()
{
 if (modus == 'html')
 {
   innerTmp = iBody.document.body.innerText;
   iBody.document.body.innerHTML = innerTmp;
   modus = 'WYSIWYG' ;
 }
 else
 {
   innerTmp = iBody.document.body.innerHTML;
   iBody.document.body.innerText = innerTmp;
   modus = 'html' ;
 }
}

function createColorTable()
{
 document.write('<table>');
 document.write('<tr>');

var newline = 0;
 for(x=0;x<6;x++) {
    c1 = createColorCode(x);
    for(y=0;y<6;y++) {
      c2 = createColorCode(y);
      for(z=0;z<6;z++) {
         newline++
         c3 = createColorCode(z);
         document.write('<td style="background: #' + c1 + c2 + c3 + ';"><a href="javascript:changeForeColor('#' + c1 + c1 + c2 + c2 + c3 + c3 + '')" title="#'+ c1 + c1 + c2 + c2 + c3 + c3 +'"> </a></td>');
         if( newline == 21) {
           document.write('</tr>');
           document.write('<tr>');
           newline = 0;
         }
      }
    }
  }
  i = 22 - newline;
  document.write('<td colspan="' + i + '"></td>');
  document.write('</tr>');
  document.write('<tr>');
  document.write('<td colspan="21" style="font: 10px verdana;width:160px">Choose a color</td>');
  document.write('</tr>');
  document.write('</table>');
}

function createColorCode(number)
{
  if (number == 0)
    return ("0")
  else if (number == 1)
    return ("3")
  else if (number == 2)
    return ("6")
  else if (number == 3)
    return ("9")
  else if (number == 4)
    return ("C")
  else return ("F")
}
// -->
</SCRIPT>

<SCRIPT language=JavaScript type=text/javascript>
<!--
document._domino_target = "_self";
function _doClick(v, o, t, h) {
  var form = document._DominoForm;
  if (form.onsubmit) {
     var retVal = form.onsubmit();
     if (typeof retVal == "boolean" && retVal == false)
       return false;
  }
  var target = document._domino_target;
  if (o.href != null) {
    if (o.target != null)
       target = o.target;
  } else {
    if (t != null)
      target = t;
  }
  form.target = target;
  form.__Click.value = v;
  if (h != null)
    form.action += h;
  form.submit();
  return false;
}
// -->
</SCRIPT>

<META content="MSHTML 6.00.2600.0" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff onload=init()>
<FORM name=_DominoForm
action=/dewalick/domwe1.nsf/example4.html!OpenForm&Seq=1 method=post><INPUT
type=hidden value=0 name=__Click><STRONG>Webbased IE WYSIWYG Editor</STRONG>
<BR><BR><A class=windowsButton href="javascript:makeBold()"><IMG alt="make bold"
src="WYSIWYG Editor 1_0-Dateien/bold.gif"></A> <A class=windowsButton
href="javascript:makeItalic()"><IMG alt="make italic"
src="WYSIWYG Editor 1_0-Dateien/italic.gif"></A> <A class=windowsButton
href="javascript:makeUnderline()"><IMG alt="make underline"
src="WYSIWYG Editor 1_0-Dateien/underline.gif"></A> <A class=windowsButton
href="javascript:createLink()"><IMG alt="Insert link"
src="WYSIWYG Editor 1_0-Dateien/link.gif"></A> <A class=windowsButton
href="javascript:insertUnorderedList()"><IMG alt="Insert unordered list"
src="WYSIWYG Editor 1_0-Dateien/bullist.gif"></A> <A class=windowsButton
href="javascript:insertOrderedList()"><IMG alt="Insert ordered list"
src="WYSIWYG Editor 1_0-Dateien/ordlist.gif"></A> <A class=windowsButton
href="javascript:justifyLeft()"><IMG alt="Justify left"
src="WYSIWYG Editor 1_0-Dateien/left.gif"></A> <A class=windowsButton
href="javascript:justifyCenter()"><IMG alt="Justify center"
src="WYSIWYG Editor 1_0-Dateien/center.gif"></A> <A class=windowsButton
href="javascript:justifyRight()"><IMG alt="Justify right"
src="WYSIWYG Editor 1_0-Dateien/right.gif"></A> <A class=windowsButton
href="javascript:toggleModus()"><IMG alt="Toggle Modus"
src="WYSIWYG Editor 1_0-Dateien/toggle.gif"></A> <A class=windowsButton
href="javascript:openPalette()"><IMG alt="Change foreground color"
src="WYSIWYG Editor 1_0-Dateien/fore.gif"></A> <A class=windowsButton
href="javascript:window.open('/dewalick/domwe1.nsf/image/?openform','insertImage','height=30,width=350');void(0)"><IMG
alt="Add image" src="WYSIWYG Editor 1_0-Dateien/image.gif"></A> <BR><IFRAME
id=iBody src="WYSIWYG Editor 1_0-Dateien/blank.html"></IFRAME>
<DIV id=colorTable
style="LEFT: 130px; VISIBILITY: hidden; POSITION: absolute; TOP: 70px">
<SCRIPT>
   createColorTable();
  </SCRIPT>
</DIV></FORM></BODY></HTML>