Hi !
I'm wondering if it's possible for the next fckeditor version to change something in fckeditor_php4.php and fckeditor_php5.php :
Change
function Create() { echo $this->CreateHtml() ; }
by
function Create() { return $this->CreateHtml() ; }
It would be easier to update fckeditor in my projects, and user friendly to put fck box where we want
Thanks !
Re: PHP effort :)
However, notice what the Create() function is doing:
It's calling $this->CreateHtml().
So, if you just need the html code, why not just:
Then you can stick $myFck wherever you want on the page.
Since the CreateHtml function already does what you require, it would be redundant to have Create do the same thing.
HTH
/serializer
Re: PHP effort :)
I don't think that anyone should expect the V3 NOT to break existing projects.
However... maybe V3 could have a simple example of how to implement a FCKeditor global namespace object that could "behind-the-scene" change settings in the V3 global namespace? Just a thought to have existing sites quickly use V3 features... if possible.
Re: PHP effort :)
True, but I think a default unmodified installation of the editor should be upgradeable to v3 with little or no changes. The change suggested here would have broken most PHP projects, for no perceivable gain (since the CreateHtml function already exists and acheives the desired purpose). Breaking changes should at least be carefully considered! Of course, if the name changes, that would break everything, and perhaps your suggestion could be used to implement a compatibility mode for sites currently on v2+...
Re: PHP effort :)
Exactly.
Creating another alias for an existing function and at the same time breaking most of the existing integration systems doesn't seem a wise move unless there is a strong reason to do the change.
Re: PHP effort :)
@others, by default, things may be broken. But, one of my ideas is providing a "backward compatibility pack", which would be a set of files that (try) to make the 2.x integration syntax work with V3.
Frederico Knabben
CKEditor Project Lead and CKSource Owner
--
Follow us on: Twitter | Facebook | Google+ | LinkedIn