Hiho
So siht es bei mir zur zeit aus:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Unbenanntes Dokument</title>
</head>
<body>
<iframe name="editor" id="editor" width="400" height="500"
src="Untitled-2.html"></iframe>
<script>
if (document.all)
{ //IE
frames.editor.document.designMode = "On";
}else
{ //Mozilla
document.getElementById("editor").contentDocument.designMode="on";
}
function runCommand(theCommand) {
var theEditor;
if (document.all) { //IE
frames["editor"].document.execCommand(theCommand, false, ';')
} else { //Mozilla
document.getElementById("editor"
).contentWindow.document.execCommand(theCommand, false, ';')
}
}
</script>
<a href="#" onClick="runCommand('bold');">B</a>
</body>
</html>
Im IE läuft das ganze ganz gut aber im Firefox passiert garnichts.Ich habe etwas im Internet gefunden das die Fehlermeldung die ich bekomme bedeutet das ich designmode nicht aktiviert habe. Habe ich Aber.
Danke für Hilfe
Fox