Ive hunted high and low through the support documentation but i just need a simple answer!
Ive integrated fckeditor 225 or whichever in PHP it looks very nice on the page ive uploaded...
ive figured out a php file which when i use the php variables
<?php echo $sForm?>
<?php echo $postedValue?>
it generates the text from fckeditor.....
BUT i want to generate the code exactly as it is in fckeditor....which it is not doing, the stylesheets etc dont match and i really dont know how to do this...
the post data goes to testpage.php
and this is testpage.php:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>FCKeditor - Samples - Posted Data</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="robots" content="noindex, nofollow">
</head>
<body>
<h1>FCKeditor - Samples - Posted Data</h1>
This page lists all data posted by the form.
<?php
if ( isset( $_POST ) )
$postArray = &$_POST ; // 4.1.0 or later, use $_POST
else
$postArray = &$HTTP_POST_VARS ; // prior to 4.1.0, use HTTP_POST_VARS
foreach ( $postArray as $sForm => $value )
{
if ( get_magic_quotes_gpc() )
$postedValue = htmlspecialchars( stripslashes( $value ) ) ;
else
$postedValue = htmlspecialchars( $value ) ;
?>
<?php echo $sForm?>
<?php echo $postedValue?>
<?php
}
?>
</body>
</html>
Hope someone can help me!
Best,
Chris
Tue, 06/09/2009 - 13:40
#1
Re: newbie question
FCK uses the stylesheets in the folder \editor\css\
You're page doesn't use any stylesheet. Read this page to know how to embed a stylesheet: http://www.intensivstation.ch/en/css/embed-css/
Re: newbie question