Print Page | Close Window

Add element to image tag output

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=23524
Printed Date: 29 March 2026 at 4:25am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Add element to image tag output
Posted By: ASProokie
Subject: Add element to image tag output
Date Posted: 14 June 2007 at 5:58pm
I would like to add class="entryImage" to the output of the images when I add them.  Where and what can I add to the RTE structure to make this happen?

Put another way: when I add an image, the outputted code is this:

<img src="http://www.imageurl.com" border="">

I would like it to look like this:

<img class="entryImage" src="http://www.imageurl.com" border="">

Help?



Replies:
Posted By: WebWiz-Bruce
Date Posted: 14 June 2007 at 6:06pm
The only way this would be possible is to write some ASP code in the page that process the form input, so that it detects links and places the required class within that link.

-------------
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: ASProokie
Date Posted: 14 June 2007 at 6:12pm
Thanks boRg -

Do you know which one is the page that processes the form input?


Posted By: WebWiz-Bruce
Date Posted: 14 June 2007 at 6:16pm
The RTE doesn't do any form processing.

You need to create your own web application with standard forms and also process those forms, you tehn apply the RTE to your forms textarea to turn it into a Rich Text HTMLarea.

How you processes the forms submitted data is completely up to you.


-------------
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: ASProokie
Date Posted: 14 June 2007 at 6:44pm
Ah - I see. I looked at the code on popupimage.asp and got the impression that RTE made some sort of alteration to the code, but I see now that that is just for the pop-up window.

So I guess there's two things, I could do:

1. write some "replace" code that takes "<img" and turns it into "<img class="entryImage"

or

2. I didn't think of this before, but I could just switch to HTML veiw in RTE and type in the code myself before I submit the form.

Thanks boRg



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net