Mozilla supports this as well. Some slight differences in syntax
though. For that matter though, Flash would obviously support this as
well...

-- 
 jon
 mailto:[EMAIL PROTECTED]

Friday, August 1, 2003, 12:47:19 PM, you wrote:
JG> If you are in an Intranet setting and are using IE, you can use an
JG> editable DIV to hold the formatted text, and then when you go to submit,
JG> copy the innerHTML or innerText value from the div to a hidden field...

JG> <div id="mycontent" style="overflow: scroll" CONTENTEDITABLE></div>

JG> Just a thought... Might be easier to implement than a full WYSIWYG
JG> editor in the page...

JG> Cheers,

JG> Jeff Garza

JG> -----Original Message-----
JG> From: Jeff Beer [mailto:[EMAIL PROTECTED] 
JG> Sent: Friday, August 01, 2003 9:16 AM
JG> To: CF-Talk
JG> Subject: RE: CF tag for highlighting text in a textfield?


JG> Unfortuneatly, a standard HTML textarea doesn't render HTML codes, so
JG> you really can't highlite words - the textarea would show the <b> or
JG> style or font tags, etc..

JG> You'll need to use an HTML editor object - I use SoEditor Lite
JG> (http://www.siteobjects.com/pages/order.cfm). It's free and very
JG> straightforward to use.

JG> You'll need to capture the output from SoEditor and run the contents
JG> against your list of bad words, doing a replace on #word# with
JG> <b>#word#</b>, then load the modified text back into the form.  If the
JG> results can't have HTML, you'll need to strip out any HTML before adding
JG> to the DB.



JG> -----Original Message-----
JG> From: Rafael Alan Bleiweiss [mailto:[EMAIL PROTECTED] 
JG> Sent: Friday, August 01, 2003 12:52 PM
JG> To: CF-Talk
JG> Subject: CF tag for highlighting text in a textfield?


JG> Anyone ever do this or know of a custom tag?

JG> I've got a form that needs to be checked against a list of bad words,
JG> and 
JG> the refresh of the page needs to have the text in the textarea with the 
JG> matched bad words highlighted in bold or red font...

JG> What's it take to do this?



JG> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to