I'm currently working on an "edit-in-place" feature for a user-editable web site, and I'm using FCKEditor to edit the content areas. The way the site works is that each user's has a set of user-defined elements which are initialized through a PHP module on page load. Each instance of this module includes an instance of FCKEditor and each page will have at least 2 or 3 of these user-editable elements if not more. The problem is that each time an instance of the editor is loaded, there is a page reload. This occurs in both IE and FireFox. This wouln't be as much of a problem if there were only 1 instance of the editor, but with multiple instances the initial page load becomes very cumbersome. Also, sometimes in FireFox, the status bar continues to say that the page is loading even after everything has been initialized. Currently my code is behind a login and is dependent upon attributes pulled from a user database, but I can try to put up a basic testing instance when I get a chance. This is the PHP code that I'm using to initialize each instance of FCK.
$oFCKeditor = new FCKeditor($row['ELEMENT_ID']) ;
$oFCKeditor->BasePath = '/FCKeditor/';
$oFCKeditor->Value =$contentRow[CONTENT];
$oFCKeditor->Width = '100%';
$oFCKeditor->Height = '100%';
$oFCKeditor->ToolbarSet = 'Basic_narrow';
$oFCKeditor->Create() ;
Is there any way to initialize the editor without causing a page reload?
Thanks
Will
$oFCKeditor = new FCKeditor($row['ELEMENT_ID']) ;
$oFCKeditor->BasePath = '/FCKeditor/';
$oFCKeditor->Value =$contentRow[CONTENT];
$oFCKeditor->Width = '100%';
$oFCKeditor->Height = '100%';
$oFCKeditor->ToolbarSet = 'Basic_narrow';
$oFCKeditor->Create() ;
Is there any way to initialize the editor without causing a page reload?
Thanks
Will