Re: QuickForm - best/easiest rich text editor to use in QF?
| From: | Justin Patrin | Date: | Thu, 10 May 2007 18:51:35 +0000 |
| Subject: | Re: QuickForm - best/easiest rich text editor to use in QF? | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-27266@lists.php.net to get a copy of this message | ||
On 5/10/07, Jeff MacDonald <jam@zoidtechnologies.com> wrote:
On Thursday 10 May 2007 12:05 pm, l Burnerheimerton wrote: I have tried Dojo and Kevin Roth's RTE. Dojo Editor (not Editor2)is easily integratable but not as fully functional as I want. RTE is easy enough to add to a form but it is a javascript submit() function. Any advice and experiences with adding rich texts editors to QuickForm is much appreciated! I've had some success in various projects using "tinymce": http://moxiecode.com/products_tinymce.phpSecond, this one is very simple to set up.
it's easy to turn it on, because when the page loads, it replaces all the textarea fields in your form with the editor... that means integration with quickform is not much of a problem at all. you can of course configure the behaviour. I recommend you read their documentation before starting the integration. you should be careful about trying to accept *actual* html tags.. personally I use something called 'wpprop' which has codes like [bold] and [/bold] and other basic markup/style codes.. you convert to html at display time (in the smarty template using a modifier) and store the wpprop codes in your db. this has stopped a lot of security issues in their tracks. pear has a "bbcode parser" you can look at.And, of course, many Wiki dialects. -- Justin Patrin