Subversion-Projekte lars-tiefland.content-management

Revision

Blame | Letzte Änderung | Log anzeigen | RSS feed

<html><head>
<title>Whizzywig editor</title>
<script type="text/javascript" src="whizzywig.js"></script>
<script type="text/javascript">

//CONFIGURE
cssFile="simple.css";
buttonPath="btn/";
var myButtons="formatblock bold italic color bullet number link image word update cancel";
//END CONFIG

var el;
function gowhizz(){
 el=window.location.search.replace(/^\?/,'');
 document.getElementById(idTa).value=opener.document.getElementById(el).innerHTML;
 showDesign();
}
function upd(){
  syncTextarea();
  opener.document.getElementById(el).innerHTML=document.getElementById(idTa).value;
  window.close();
}
buts = 'update cancel';
dobut['cancel'] = 'js:window.close();'; 
dobut['update'] = 'js:upd();'; 
</script>
<style>html, body {height:100%;width:100%;padding:0;margin:0;border:0}</style>
</head>

<body onload="gowhizz()">

<form onsubmit="upd()">
<textarea id="whizzy" style="width:100%; height:425px;"></textarea>

<script type="text/javascript">
makeWhizzyWig("whizzy",myButtons);
</script>
</form>

</body>
</html>