If it should infact be a preview, as in before submitting it at all, you'd have to work on javascript I guess.
Otherwise you'd have to handle this in your own PHP code. Make a submit button "Preview" that doesnt save your content but instead pops up a new window showing the value that was submitted from the editor. Actually this might give a more realistic preview incase certain HTML-magic has been done when submitting the editor.
If you edit whole html files with FCK you won't need the "print $cgi...." statements. I have never worked with perl before, but I realized that this would be the easiest way to catch the editor content via Post.
I, too, am trying to access the value of an fck editor instance in another page. So far, I have a button open a new window, & would like to display the contents of the editor from the opening window so that they appear as they would on a live site. I've been trying to do this in javascript, so I can use the window.opener property. So far, I am able to see the fck instance in the opener window, but no luck thus far in accessing the content... Anyone know how to do this?
RE: How to grab the temporary content?
Otherwise you'd have to handle this in your own PHP code. Make a submit button "Preview" that doesnt save your content but instead pops up a new window showing the value that was submitted from the editor. Actually this might give a more realistic preview incase certain HTML-magic has been done when submitting the editor.
RE: How to grab the temporary content?
RE: How to grab the temporary content?
But the editor already provides a button with a preview in a separate window. Is this not enough for your needs?
Rgds,
Axel
RE: How to grab the temporary content?
RE: How to grab the temporary content?
RE: How to grab the temporary content?
RE: How to grab the temporary content?
http://wiki.fckeditor.net/Developer%27s ... script_API
RE: How to grab the temporary content?
RE: How to grab the temporary content?
Have you tried using a perl script? I use it to display the content of the editor in a new window.
Looks something like that:
#-------------------------------------------------------------------#
my $editorcontent = $cgi->param('FCKeditor1');
print $cgi->header(),
$cgi->start_html('CGI-Feedback');
print $reportcontent;
print $cgi->end_html();
#-------------------------------------------------------------------#
If you edit whole html files with FCK you won't need the "print $cgi...." statements.
I have never worked with perl before, but I realized that this would be the easiest way to
catch the editor content via Post.
RE: How to grab the temporary content?
I, too, am trying to access the value of an fck editor instance in another page. So far, I have a button open a new window, & would like to display the contents of the editor from the opening window so that they appear as they would on a live site. I've been trying to do this in javascript, so I can use the window.opener property. So far, I am able to see the fck instance in the opener window, but no luck thus far in accessing the content... Anyone know how to do this?
- O8