News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Jani Hartikainen's Blog:
Integrating FCKeditor with Zend_Form
April 06, 2009 @ 07:55:40

Jani Hartikainen has posted a guide to his blog for getting the FCKeditor integrated into your Zend_Form instance.

How to use FCKeditor, or any other WYSIWYG editor, with Zend_Form? Another relatively common question. There are many ways you can do this, but let's look at these two as they are the best in my opinion: Adding some JavaScript to your view script, Creating a Zend_Form_Decorator. We'll be using FCKeditor, but you can apply the techniques shown to others, such as TinyMCE, as well.

The first method, via javascript, just drops the editor in inside some script tags. The second (more "Zend Framework way") creates a decorator as a custom way to insert the same javascript code. A call to appendScript inside the render() function (the code is here). Then its just a call to addDecorator to plug in a CU_Form_Decorator_FckEditor instance.

0 comments voice your opinion now!
integrate decorator zendform zendframework fckeditor tinymce


blog comments powered by Disqus

Similar Posts

Zend Developer Zone: Zend Webinar Wednesdays: Zend Framework 1.0 - An Overview

IBuildings techPortal: Secure Programming with the Zend Framework

Community News: Zend Framework IRC Channel Launched - #zftalk on FreeNode

Padraic Brady's Blog: PEAR::Encryption and Zend_Crypt Revisited

Matthew Weier O'Phinney's Blog: How to Contribute to ZF2


Community Events





Don't see your event here?
Let us know!


interview library series bugfix developer list language introduction zendserver tips release community opinion api laravel threedevsandamaybe symfony framework deployment podcast

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework