Hi all,

I want to integrate FCKEditor (WYSIWYG) into a Zend_Form thus bringing all
the benefits that allows...

Note: Im not talking of simply getting FCKEditor to work in the view etc
(ala here:
http://blog.ekini.net/2007/11/28/using-fckeditor-with-zend-framework-file-browser-enabled/#comments)
but actually integrating it into Zend_Form.

Has anyone done this before? What would be your recommended approach? Is it
even possible without  investing 100's of man hours and hacking the
framework to death? :-(

I first thought of simply dumping the HTML required by FCKEditor into a
decorator but this is not the answer.

I then thought of creating a new Zend_Form_Element and overwriting the
render method to simply return the HTML like so:

        public function render(Zend_View_Interface $view = null)
        {
                                
                $oFCKeditor = new FCKeditor_FCKeditor('FCKeditor1');
                $oFCKeditor->BasePath = '/js/FCKeditor/';
                $oFCKeditor->Value = $this->getValue();
                        
                return $oFCKeditor->CreateHtml();
                
        } 

Neither of the above provide any real integration with Zend_Form however!
Using the above method for example it is not possible to wrap the element in
Decorators or add a Label. It also doesnt provide integration when using
$form->getValues(). The FCKEditor form field only shows in $_POST.

Maybe a ViewScript Decorator is the answer? Wait for the Editor Dijit (even
though it is nowhere as comprehensive)?

What would you guys suggest?

Regards,

David
-- 
View this message in context: 
http://www.nabble.com/FCKEditor-and-Zend_Form-integration-tp19688738p19688738.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to