I am trying to wrap my html (including the fckedtior) with a table.. See below:
But the editor keeps echoing outside the table...
Why wont it wrap with the data? Thanks for any help....
$data = "<table>";
$data .= "<tr><td>";
$data .= $editor = new FCKedtior("new");
$data .= $editor->BasePath = "my path to editor";
$data .= ....more fckedtior init code
$data .= $editor->Create();
$data .= "</td></tr>";
$data .= "</table>";
echo $data;
But the editor keeps echoing outside the table...
Why wont it wrap with the data? Thanks for any help....
$data = "<table>";
$data .= "<tr><td>";
$data .= $editor = new FCKedtior("new");
$data .= $editor->BasePath = "my path to editor";
$data .= ....more fckedtior init code
$data .= $editor->Create();
$data .= "</td></tr>";
$data .= "</table>";
echo $data;
RE: Echo or Return ? Please help...
print "<table>";
print "<tr><td>";
$editor = new FCKedtior("new");
$editor->BasePath = "my path to editor";
....more fckedtior init code
$$editor->Create();
print "</td></tr>";
print "</table>";
It works for me.
Kind regards Fred
RE: Echo or Return ? Please help...
Thanks SOOO much for the reply but that wont work... because I have to wrap all of that i posted into a function.. More details provided. Please re-read: IE:
THanks so much...
include_once('../classes/tablewrap.class.php');
$data = "<table>";
$data .= "<tr><td>";
$data .= $editor = new FCKedtior("new");
$data .= $editor->BasePath = "my path to editor";
$data .= ....more fckedtior init code
$data .= $editor->Create();
$data .= "</td></tr>";
$data .= "</table>";
$userdata = New pagehdrftr;
$userdata->align=center;
$userdata->width='400px';
$userdata->corners='white';
$userdata->tablewrap($data);
Basicly I have a class that I use that I can feed whatever html and vars into and the $data is wrapped with a nicely formated table (tablewrap). I use it for my whole site. I just cant get the formated area to go into the 'wrap'.
But If you try doing this with out a class... and just try to concantinate html with the fckeditor.. it wont display WHERE you want it. In this case in my tablewrap. It is displaying where it is called.
Please help!!
RE: Echo or Return ? Please help...
RE: Echo or Return ? Please help...