Try the soEditor PageEdit attribute. See
http://www.siteobjects.com/siteobjects/soeditor/lite/docs/index.cfm?method=i
nvocation

Matthew Walker
http://www.matthewwalker.net.nz/

----- Original Message -----
From: "Brook Davies" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, October 22, 2002 7:48 AM
Subject: SoEditor and RegEx help


> Hello,
>
> I'm using the SoEditor wyiwyg Editor and I need some help with a regular
> expression. The Soeditor when it is initially loaded prepopulates the text
> area with some basic html. Head and body tags etc.
>
> The problem I'm having with this is that if a user does not enter
anything,
> it still looks like there is content in the textarea. I would like to be
> able to say <cfif not (len(trim(form.textarea))> You did not enter
> anything!</cfif>, but there will always be this default HTML in the
> textarea. So my question is how do I ues Regular expressions (which I know
> next to nothing about) to strip out the default content and check for user
> entered content only. I'm sure that other SoEditor users would find this
> useful, or maybe one of you have already done this?
>
> Here is the default code:
>
> <HTML>
> <HEAD>
> <META NAME="GENERATOR" Content="Microsoft DHTML Editing Control">
> <TITLE></TITLE>
> </HEAD>
> <BODY style="FONT-FAMILY: ">
> <DIV>&nbsp;</DIV>
> </BODY>
> </HTML>
>
> Thanks for the help. I really need to learn regEx, can any one recommend a
> good book or online tutorial?
>
> -Brook
>
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
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

Reply via email to