Insert web link and target

Insert web link and target

by Mika Ståhlberg -
Number of replies: 3
When inserting web link, target is ignored (new window, same frame etc). You need to do it twice to get target what you selected. See below for an example, first was made by just adding web link to a new window (wich was ignored), second link  was made by doing  same thing twice to get target in. Bug or not?

link to a new window target, edited once

lint to a new window target, edited twice

mika
რეიტინგების საშუალო: -
In reply to Mika Ståhlberg

Vast: Insert web link and target

by Mika Ståhlberg -
More info:

- Moodle version 1.5+ (2005060201)
- Inserting target works in IE6, Firefox 1.0.4 is not working (first time).

Stumbled into htmlArea 3 fork, Xinha, which claims to be 'a generally better version of htmlArea version 3, with a much cooler name'. Seems to deliver what it claims also.

Mika
რეიტინგების საშუალო: -
In reply to Mika Ståhlberg

Re: Insert web link and target

by Janne Mikkonen -
Implementation vary between IE and Gecko based browsers, and when creating link (document.execCommand('createlink', false, href)) differences with these two browser brands is really big.

IE can read <a> -tags attributes right away and Gecko based browsers can't, thus these attributes need to be read afterwards. Unfortunately this isn't working as it should at the moment.
რეიტინგების საშუალო: -