Re: QuickForm: Need some help to integrate FCKeditor withQF

From: Date: Thu, 06 Jan 2005 10:52:04 +0000
Subject: Re: QuickForm: Need some help to integrate FCKeditor withQF
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-16728@lists.php.net to get a copy of this message
Hello The methods setValue() and getValue() exists in the class HTML_QuickForm_fckeditor: function setValue($value) { $this->_value = $value; } //end func setValue function getValue() { return $this->_value; } If I set a default value with setDefaults(), it's ok when form is displayed. Before form submission the html of the field notes (fckeditor) is: <div><input type="hidden" id="fckeditor1" name="fckeditor1" value="This is a test"><input type="hidden" id="fckeditor1___Config" value=""><iframe id="fckeditor1___Frame" src="/home/tests/forms/FCKeditor/editor/fckeditor.html?InstanceName=fckeditor1&Toolbar=Custom" width="700" height="150" frameborder="no" scrolling="no"></iframe></div> I add new text in the editor and submit the form. The html still "This is a test", the default value. Greetings "Alexey Borzov" <borz_off@cs.msu.su> escreveu na mensagem news:41DD144A.1020700@cs.msu.su... > Hi, > > pt2002 wrote: >> I think it's the right way. The field that holds the value of the editor >> it's an hidden field. The way it is now it doesn't get updated when form >> is submited because the toHtml() returns two hidden inputs and an iframe. > > Hmm, I suppose it isn't updated because you didn't implement setValue() / > getValue() as well... > >> One more time I need some help. I just need to know how to set each of >> the inputs and the iframe. >> Should I use the setElement() function? In the php scritp where the form >> is created, it's the same way just like a group of elements? > > If you really want to redo the element as a subclass of group, then please > look at the date and hierselect elements' source.

« previous php.pear.general (#16728) next »