Hi ,
I recently installed CKEditor successfully. Now I added a submit button to display the text entered.But when I click on Submit, it doesn't do anything. Could you please let me know what I am missing?
Thanks in advance,
Shilpa
My code:
<form id="myForm" action ="reply.jsp" method="post" >
<p>
<textarea id="editor1" class="ckeditor" name="editor1"> Sample data </textarea>
<input type="submit" value="Submit" />
</p>
<script type="text/javascript">
CKEDITOR.replace('editor1');
document.myForm.onsubmit();
</script>
</form>
I recently installed CKEditor successfully. Now I added a submit button to display the text entered.But when I click on Submit, it doesn't do anything. Could you please let me know what I am missing?
Thanks in advance,
Shilpa
My code:
<form id="myForm" action ="reply.jsp" method="post" >
<p>
<textarea id="editor1" class="ckeditor" name="editor1"> Sample data </textarea>
<input type="submit" value="Submit" />
</p>
<script type="text/javascript">
CKEDITOR.replace('editor1');
document.myForm.onsubmit();
</script>
</form>