Hello all, I am new to using this great product
I am updating my CRUD pages and want to use Fckeditor for a fiew fields of my database. (at this time my edit page)
I am using php and when I output the portion of the page that contains the form I am adding to a string variable
like this
it does not issue any warnings but when I echo $page to the screen the fckeditor html prints out before the rest of the string.
it is returning the correct data from the database, which is inside the fckeditor box, but it is above where it should be in the html document. Which to me means that it is somehow getting to the start of the $page string instead of being in the middle of the $page string.
here is what it prints
as you can see it prints the FCKeditor tags before the rest of the $page string (<form tag should be the start of the string).
I am no expert on OO php so I am thinking I have to do something specifically for OO programming to accomplish this.
any ideas?
I am updating my CRUD pages and want to use Fckeditor for a fiew fields of my database. (at this time my edit page)
I am using php and when I output the portion of the page that contains the form I am adding to a string variable
like this
$page.='start of form'; $page.='add some database stuff using while statements'; $oFCKeditor = new FCKeditor('FCKeditor1') ; $oFCKeditor->BasePath = '/fckeditor/' ; $oFCKeditor->Value = $field->name; $page .= $oFCKeditor->Create()
it does not issue any warnings but when I echo $page to the screen the fckeditor html prints out before the rest of the string.
it is returning the correct data from the database, which is inside the fckeditor box, but it is above where it should be in the html document. Which to me means that it is somehow getting to the start of the $page string instead of being in the middle of the $page string.
here is what it prints
<input type="hidden" id="FCKeditor1" name="FCKeditor1" value="article" style="display:none" /><input type="hidden" id="FCKeditor1___Config" value="" style="display:none" /><iframe id="FCKeditor1___Frame" src="/fckeditor/editor/fckeditor.html?InstanceName=FCKeditor1&Toolbar=Default" width="100%" height="200" frameborder="0" scrolling="no"></iframe> <form action="/cte_new/admin/cms_new.php" method="POST"><input type="hidden" name="xxbmnnzhfwggsf" value="update"><table cellpadding="2" cellspacing="0" border="0"><td><strong>Id:</strong></td><td>1<input type="hidden" name="id" value="1"></td> </tr><tr><td><strong>Title:</strong></td><td>and then the rest of the table...
as you can see it prints the FCKeditor tags before the rest of the $page string (<form tag should be the start of the string).
I am no expert on OO php so I am thinking I have to do something specifically for OO programming to accomplish this.
any ideas?