Print Page | Close Window

Howto disable full path?

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=15184
Printed Date: 29 March 2026 at 2:09pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Howto disable full path?
Posted By: MillaG
Subject: Howto disable full path?
Date Posted: 22 May 2005 at 12:52pm

When using AddEmoticons function I always get the full path (e.g. <img src="http://www.myserver.com/images/smiley.gif">) in the source code. If possible I'd like to control the path so it won't add the http:// part, I want the path to be just <img src="images/smiley.gif">.

Is there any solution for this? Changing the blnUseFullURLpath doesn't work, same result for true and false.



Replies:
Posted By: dj air
Date Posted: 22 May 2005 at 2:42pm
the only way ff the top of my head is to directly edit the page. in qyuestion.


Posted By: MillaG
Date Posted: 22 May 2005 at 4:08pm
Hmmm... ok.. not working. I've been trying all day to make the result look the way I want it to but don't seem to be able to work around it.
 
When typing URLs in the RTE textarea, the text is automatically recognized as an URL and the RTE is surrounding the URL with A HREF tag. That's just fine, but can I somewhere in the code add target=_blank to force links to open in new window?
 
Can't use base target for the entire page, that would mess up other links on the page, just want to make links from the textarea to open in new window by default. If I can make that work, I don't have to worry about the first problem....
 
Thankful for any help in this matter!


Posted By: dj air
Date Posted: 22 May 2005 at 5:12pm
within the RTE postback validation you could add

strRTEInput = replace (strRTEInput, "<a href", "<a target=""_blank"" href")

strRTEInput is finctionary.. you will have to use existing veriables that you use.


Posted By: xeerex
Date Posted: 22 May 2005 at 5:41pm
Originally posted by wrote:

but can I somewhere in the code add target=_blank to force links to open in new window


One quick workaround is to click the "Toggle HTML View" button when using the RTE. Add the code in the HTML. Of course, you can also just choose "New Window" when you add a hyperlink in the dialog box. There is a drop-down for it.


-------------
http://webspacegeeks.com - Need Hosting, Domains, Dedicated Servers?
http://www.smartergeek.com - web design | pc support | training | podcasts | video production


Posted By: Thorbjorn
Date Posted: 23 May 2005 at 12:47am
Originally posted by xeerex xeerex wrote:

Originally posted by wrote:

but can I somewhere in the code add target=_blank to force links to open in new window


One quick workaround is to click the "Toggle HTML View" button when using the RTE. Add the code in the HTML. Of course, you can also just choose "New Window" when you add a hyperlink in the dialog box. There is a drop-down for it.
 
Hi, I am working together with MillaG on this small problem.
The thing is that we donīt want any of our members in our community should need to know any html, so, when they type a link, like http://www.webwisguide.info - www.webwisguide.info we want to be sure the link  opens a new window. We do not want to force them to use a dialog box either.


Posted By: xeerex
Date Posted: 23 May 2005 at 9:38am
Originally posted by wrote:

The thing is that we donīt want any of our members in our community should need to know any html, so, when they type a link, like http://www.webwisguide.info/ - www.webwisguide.info we want to be sure the link  opens a new window. We do not want to force them to use a dialog box either.


Hi and welcome to the WWG forum. You are welcome for the suggestions posted by dj air and myself.

If your users are smartly running Firefox, then they will have to use the hyperlink button which will open the hyperlink dialog box anyway. If your users are unfortunately still running IE, then just use dj air's suggestion.Wink


-------------
http://webspacegeeks.com - Need Hosting, Domains, Dedicated Servers?
http://www.smartergeek.com - web design | pc support | training | podcasts | video production


Posted By: Thorbjorn
Date Posted: 23 May 2005 at 4:58pm
Thank You!
 
Is it possible to disable the whole feature to create link in WWRTE?
 
We donīt need to create links in the RTE. We only need it to format text.
 
I am sorry for all questions but I like the RTE but not the CreatLink funtion.
 


Posted By: xeerex
Date Posted: 23 May 2005 at 6:08pm
Originally posted by wrote:

Is it possible to disable the whole feature to create link in WWRTE?


Yep - just look for the following line in RTE_configuration/RTE_setup.asp and change it. This will disable the button.

Const blnAddHyperlink = true

Const blnAddHyperlink = true

Originally posted by wrote:

We donīt need to create links in the RTE. We only need it to format text.


Just be aware of the issue mentioned above with non-IE browsers.Wink


-------------
http://webspacegeeks.com - Need Hosting, Domains, Dedicated Servers?
http://www.smartergeek.com - web design | pc support | training | podcasts | video production


Posted By: MillaG
Date Posted: 23 May 2005 at 6:35pm
Thank you for your input and suggestions to our questions!
 
Problem solved at last, after some editing and testing we've decided to go with the replace-function and use that on our display-page.
 
Thanks again, to both of you! Smile



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