| 1 |
lars |
1 |
<html><head>
|
|
|
2 |
<title>Whizzywig editor</title>
|
|
|
3 |
<script type="text/javascript" src="whizzywig.js"></script>
|
|
|
4 |
<script type="text/javascript">
|
|
|
5 |
|
|
|
6 |
//CONFIGURE
|
|
|
7 |
cssFile="simple.css";
|
|
|
8 |
buttonPath="btn/";
|
|
|
9 |
var myButtons="formatblock bold italic color bullet number link image word update cancel";
|
|
|
10 |
//END CONFIG
|
|
|
11 |
|
|
|
12 |
var el;
|
|
|
13 |
function gowhizz(){
|
|
|
14 |
el=window.location.search.replace(/^\?/,'');
|
|
|
15 |
document.getElementById(idTa).value=opener.document.getElementById(el).innerHTML;
|
|
|
16 |
showDesign();
|
|
|
17 |
}
|
|
|
18 |
function upd(){
|
|
|
19 |
syncTextarea();
|
|
|
20 |
opener.document.getElementById(el).innerHTML=document.getElementById(idTa).value;
|
|
|
21 |
window.close();
|
|
|
22 |
}
|
|
|
23 |
buts = 'update cancel';
|
|
|
24 |
dobut['cancel'] = 'js:window.close();';
|
|
|
25 |
dobut['update'] = 'js:upd();';
|
|
|
26 |
</script>
|
|
|
27 |
<style>html, body {height:100%;width:100%;padding:0;margin:0;border:0}</style>
|
|
|
28 |
</head>
|
|
|
29 |
|
|
|
30 |
<body onload="gowhizz()">
|
|
|
31 |
|
|
|
32 |
<form onsubmit="upd()">
|
|
|
33 |
<textarea id="whizzy" style="width:100%; height:425px;"></textarea>
|
|
|
34 |
|
|
|
35 |
<script type="text/javascript">
|
|
|
36 |
makeWhizzyWig("whizzy",myButtons);
|
|
|
37 |
</script>
|
|
|
38 |
</form>
|
|
|
39 |
|
|
|
40 |
</body>
|
|
|
41 |
</html>
|