Opened 17 years ago
Closed 17 years ago
#1703 closed Bug (invalid)
PHP integration
Reported by: | Marcel Klomp | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Server : PHP | Version: | FCKeditor 2.5.1 |
Keywords: | Cc: |
Description
Hi, When integrating this version it turns out that when you use any templating system create() will echo the editor, causing it to load on th top of the page. To solve this I had to edit the files fckeditor_php4.php and fckeditor_php5.php to say:
function Create() { return $this->CreateHtml() ; }
Instead of
function Create() { echo $this->CreateHtml() ; }
Small bug, but a significant one I'd say.
Cheers,
Marcel
That's why we have CreateHtml(), to satisfy those needs. The Create() function is intended to be used to echo the editor in the function call place.
In other words, just change Create() to CreateHtml() in your system.