| Author |
Topic Search Topic Options
|
MillaG
Newbie
Joined: 22 May 2005
Location: Sweden
Status: Offline
Points: 3
|
Post Options
Thanks(0)
Quote Reply
Topic: Howto disable full path? 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.
|
 |
dj air
Senior Member
Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
|
Post Options
Thanks(0)
Quote Reply
Posted: 22 May 2005 at 2:42pm |
|
the only way ff the top of my head is to directly edit the page. in qyuestion.
|
 |
MillaG
Newbie
Joined: 22 May 2005
Location: Sweden
Status: Offline
Points: 3
|
Post Options
Thanks(0)
Quote Reply
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!
|
 |
dj air
Senior Member
Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
|
Post Options
Thanks(0)
Quote Reply
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.
|
 |
xeerex
Senior Member
Joined: 19 November 2002
Location: United States
Status: Offline
Points: 601
|
Post Options
Thanks(0)
Quote Reply
Posted: 22 May 2005 at 5:41pm |
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.
|
|
|
 |
Thorbjorn
Newbie
Joined: 22 May 2005
Location: Sweden
Status: Offline
Points: 2
|
Post Options
Thanks(0)
Quote Reply
Posted: 23 May 2005 at 12:47am |
xeerex wrote:
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 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.
|
 |
xeerex
Senior Member
Joined: 19 November 2002
Location: United States
Status: Offline
Points: 601
|
Post Options
Thanks(0)
Quote Reply
Posted: 23 May 2005 at 9:38am |
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 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.
|
|
|
 |
Thorbjorn
Newbie
Joined: 22 May 2005
Location: Sweden
Status: Offline
Points: 2
|
Post Options
Thanks(0)
Quote Reply
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.
|
 |