codice:
<form id="news" name="news" method="post" action="./content.php?page=4&action=upload" enctype="multipart/form-data" onSubmit="tinyeditor.Post();">
<div>Titolo</div>
<div><input type="text" name="titolo" value="" size="60" /></div>
</p>
<div>Sotto Titolo</div>
<div><input type="text" name="sotto_titolo" value="" size="60" /></div>
</p>
<div>Data</div>
<div><input type="text" name="data" value="" size="60" /></div>
</p>
<textarea id="tinyeditor" name="tinyeditor" style="width: 400px; height: 200px"></textarea>
<script>
var editor = new TINY.editor.edit('editor', {
id: 'tinyeditor',
width: 584,
height: 175,
cssclass: 'tinyeditor',
controlclass: 'tinyeditor-control',
rowclass: 'tinyeditor-header',
dividerclass: 'tinyeditor-divider',
controls: ['bold', 'italic', 'underline', 'strikethrough', '|', 'subscript', 'superscript', '|',
'orderedlist', 'unorderedlist', '|', 'outdent', 'indent', '|', 'leftalign',
'centeralign', 'rightalign', 'blockjustify', '|', 'unformat', '|', 'undo', 'redo', 'n',
'font', 'size', 'style', '|', 'image', 'hr', 'link', 'unlink', '|', 'print'],
footer: true,
fonts: ['Verdana','Arial','Georgia','Trebuchet MS'],
xhtml: true,
cssfile: 'custom.css',
bodyid: 'editor',
footerclass: 'tinyeditor-footer',
toggle: {text: 'source', activetext: 'wysiwyg', cssclass: 'toggle'},
resize: {cssclass: 'resize'}
});
</script>