[Rspa-users] FCKEditor
Brought to you by:
sunish-kumar
|
From: Ilya G. <gu...@ra...> - 2006-11-07 09:30:16
|
hi!
i've been trying the rspa framework the whole previous night, and i
have to say i like it!
i managed to do everything i needed with it, except one, but the most
important thing: transport the FCKEditor-field value to my custom
class.
i have a form with the only fckeditor-area in it, which i
submit using the "save" button of the editor.
here is my code, no idea is it correct or not
<?php
require_once("rspa/components/Form.class.php");
class saveInHTML extends Form
{
function save($which){ // @which@ is just a parameter,
//never mind, it is transmitted ok
$f =3D fopen('hi.txt','w+b');
if($this->controls["wysiwyg"]->getValue()!=3D'')
{
fputs($f,"hi");
}
fclose($f); // the file remains empty. though if i change
// "hi" to $which, then it appears ok in the file - just such
// a method to check
}
}
?>
<FORM name=3D'wysiwyg1' ACTION=3D\"javascript:var saverspa =3D new RSPA.Exe=
cute('saveInHTML.save()',{parameters: new Array('" + which + "'),=F1ontroll=
er:'rspa/framework/Controller.php',oncomplete:finish()});\">"
if you don't want to dig into my code, then please simply answer, how do i
work with a form, which has an FCKEditor field in it.
|