Hello,
I'm having a problem and I can't figure out the solution.
Thing is my editor is working fine when people just write 'normal text' . However when a user creates a form and saves it, first everything is fine. The form is saved. However, when you edit it or just save it again, all the content is missing after you saved. I print out all the parameters that are posted, and the one for fckeditor is empty.
Is it not possible to have form tags within a textarea or something? Cause if this is the cause, how should I solve it, cause the editor replaces the textarea.
Hope someone could help me...
short snippet of my code
<script type="text/javascript">
var editorload = false;
function openEditor()
{
if(editorload==false){
var textarea = document.getElementById("editor");
textarea.style.display = "block";
var oFCKeditor = new FCKeditor('obisContentP');
oFCKeditor.Width = document.getElementById("showtext").clientWidth ;
oFCKeditor.Height = document.getElementById("showtext").clientHeight+500 ;
oFCKeditor.ReplaceTextarea();
editorload = true;
}
</script>
<textarea name="obisContentP" id="editor" rows="50" class="edittextfield" style="display:none;"> <%(String)hashtable3.get(ObisContentBean.OBIS_CONTENT_CONTENT); ></textarea>
Thanks in advance
I'm having a problem and I can't figure out the solution.
Thing is my editor is working fine when people just write 'normal text' . However when a user creates a form and saves it, first everything is fine. The form is saved. However, when you edit it or just save it again, all the content is missing after you saved. I print out all the parameters that are posted, and the one for fckeditor is empty.
Is it not possible to have form tags within a textarea or something? Cause if this is the cause, how should I solve it, cause the editor replaces the textarea.
Hope someone could help me...
short snippet of my code
<script type="text/javascript">
var editorload = false;
function openEditor()
{
if(editorload==false){
var textarea = document.getElementById("editor");
textarea.style.display = "block";
var oFCKeditor = new FCKeditor('obisContentP');
oFCKeditor.Width = document.getElementById("showtext").clientWidth ;
oFCKeditor.Height = document.getElementById("showtext").clientHeight+500 ;
oFCKeditor.ReplaceTextarea();
editorload = true;
}
</script>
<textarea name="obisContentP" id="editor" rows="50" class="edittextfield" style="display:none;"> <%(String)hashtable3.get(ObisContentBean.OBIS_CONTENT_CONTENT); ></textarea>
Thanks in advance