Hi,
I am having trouble building a custom prview window for content being edited with the FCkeditor.
I call the editor in my .php page as follows:
<script type=\"text/javascript\">
var oFCKeditor = new FCKeditor( 'content1', '100%', '300', 'Default', '$content1' );
oFCKeditor.Create() ;
</script>
I am trying to open a JS poup window which will reflect the content of the editor area. I am simply using the following:
var content1 = opener.document.getElementById('content1').value;
This works fine if the data has already been saved to the DB, but not for fresh data.
I also tried using:
var content1 = opener.document.forms.dataform.content1.value;
which does the same thing. Does anyone have any ideas that may help me. Thanks in advance.
I am having trouble building a custom prview window for content being edited with the FCkeditor.
I call the editor in my .php page as follows:
<script type=\"text/javascript\">
var oFCKeditor = new FCKeditor( 'content1', '100%', '300', 'Default', '$content1' );
oFCKeditor.Create() ;
</script>
I am trying to open a JS poup window which will reflect the content of the editor area. I am simply using the following:
var content1 = opener.document.getElementById('content1').value;
This works fine if the data has already been saved to the DB, but not for fresh data.
I also tried using:
var content1 = opener.document.forms.dataform.content1.value;
which does the same thing. Does anyone have any ideas that may help me. Thanks in advance.