removing default text area <P> </P>
Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Rich Text Editor (RTE)
Forum Description: Support forum for the Web Wiz Rich Text Editor (RTE).
URL: https://forums.webwiz.net/forum_posts.asp?TID=27263
Printed Date: 28 March 2026 at 7:31pm Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com
Topic: removing default text area <P> </P>
Posted By: rich123
Subject: removing default text area <P> </P>
Date Posted: 16 April 2009 at 5:34pm
|
Hi, I have a licenced copy of the webwiz text editor which I have to say is great. I have one enquiry though. I am directly inputting to my database. On the webpage that views the content, I need to use asp.... if isblank(() etc. The only trouble is that the text editor enters in the text field by default <P> </P> so I cannot have an empty database field so cannot use if is blank. Is there a way to stop that happening.
Thanks for any help.
Richard
|
Replies:
Posted By: WebWiz-Bruce
Date Posted: 17 April 2009 at 7:56am
The ASP code below is what we use in Web Wiz Forums to detect using ASP if the text editor is blank:-
If Trim(strMessage) = "" OR Trim(strMessage) = "<P> </P>" OR Trim(strMessage) = "<br>" OR Trim(strMessage) = "<br>" & vbCrLf Then
The text atrea content is placed in the variable strMessage, you would want to change this to your own variable name.
Many browser auto fill the editor with different content, such as <P> </P>, the code above tests for all variations of this.
------------- https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting
|
Posted By: rich123
Date Posted: 17 April 2009 at 11:54pm
|
Thanks Bruce, Thats just what I needed, solved it.
Cheers
Richard
|
|