to cook up some hack along the following lines: add some flag to the URL. The hacking code would watch
for this flag and then add the appropriate target attribute to that anchor.
I'm relatively new to Moodle and so I haven't had a chance to snoop around
as much as I would like but I have solved this issue on a per link basis in
the HTML hard code. Basically, I coded the target for each link that I want
to set to a new browser as blank ie: <a href="http://www.google.ca"
target="_blank">. You either have to:
- when using the rich text editor, edit the links in the source code
- write everything up in HTML source in an HTML editor such as Dreamweaver
- a good freeware one is http://www.w3.org/Amaya/
(click on this link and you will see the target="_blank" in action!)
Note that in order to make the 2nd option easier, I disabled the Richtext HTML
editor and just plug code into my windows. I find I have more control over my
results this way.
Otherwise, if I want a url behind a piece of text, I code it in html, and tell moodle to use html formatting, as in the example by Kristina above.
Bug added for a resolution
Bug #315 - External resource in pop-up window?