For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > May 2007 > Re: [PEAR] QuickForm - best/easiest rich text editor to use in QF?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR] QuickForm - best/easiest rich text editor to use in QF?
Jeff MacDonald

2007-05-10, 7:19 pm

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.php

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.

regards,
--
Jeff MacDonald,
Zoid Technologies <http://zoidtechnologies.com/>
Masterkingcrib

2007-05-12, 9:02 pm

Cutie teasing pusy with vibro then facking hard
http://trully-bigtits.info/play.asp?bigtits218571
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com