Opened 16 years ago

Closed 16 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

Change History (1)

comment:1 Changed 16 years ago by Frederico Caldeira Knabben

Resolution: invalid
Status: newclosed

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.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy