Ticket #424 (closed defect: invalid)
Submit to Publish
| Reported by: | aaron@… | Owned by: | akaEdge |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Documentation | Version: | |
| Severity: | normal | Keywords: | |
| Cc: |
Description
For the life of me, I can't figure out how to send the 'ta' or 'myTextArea' variable so I can publish the output to an include file. How I did it in htmlarea:
<body onload="initEditor()"> <form method="post" action="/cgi/publish.cgi"> <textarea id="ta" name="ta"><?php echo="$html"; ?></textarea> <input type="submit" value="Submit"> </form>
Is there any way I could just call Xinha to the <textarea> without having to use the div tag?
SEE BELOW
BTW... Thanks for all the work you've done. Xinha, from what I can see, puts htmlarea to shame. Now I just need to figure out how to make it work with my system :)! ~Aaron
<form id="editors_here"> <textarea id="myTextArea" name="myTextArea" rows="10" cols="80" style="width:100%"></textarea> </form> <div id="lipsum" style="display:none"> Examples Text Here! </div> <script type="text/javascript">
xinha_editors = [ ]
var ta = 'myTextarea'; xinha_editors.push(ta);
var f = document.forms[0]; f.innerHTML = ;
var lipsum = document.getElementById('lipsum').innerHTML;
var div = document.createElement('div'); div.className = 'area_holder';
var txta = document.createElement('textarea'); txta.id = ta; txta.name = ta; txta.value = lipsum; txta.style.width="475px"; txta.style.height="420px";
div.appendChild(txta); f.appendChild(div);
//check submitted values var submit = document.createElement('input'); submit.type = "submit"; submit.action = "/cgi/publish.cgi"; submit.id = "submit"; submit.value = "submit"; f.appendChild(submit);
</script>
