RE: [PEAR] QuickForm: Need some help to integrate FCKeditor withQF

From: Date: Thu, 03 Feb 2005 14:24:47 +0000
Subject: RE: [PEAR] QuickForm: Need some help to integrate FCKeditor withQF
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-17358@lists.php.net to get a copy of this message
Hello, Could you publish your final code of HTML_QuickForm_fckeditor? I'm about to use this editor and I intrested by your solution. Thanks a lot. -----Message d'origine----- De : pt2002 [mailto:pt2002@mail.pt] Envoyé : jeudi 6 janvier 2005 11:52 À : pear-general@lists.php.net Objet : Re: [PEAR] QuickForm: Need some help to integrate FCKeditor withQF 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=fckedito r1&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. -- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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