I'm trying to add a pop up link using the html editor, but it does something funny every time.
This is what i did,
(1) I click on "edit" for a lesson or journal
(2) I switch to "html source" in order to enter the predefined pop up link,
<A Xonclick="window.open(this.href,'','top=200,left=200,width=400,height=180');return false;" href="http://www.somesite.com/user_pages/senses.html"><U>senses</U></A>
(3)After i switch back to the "regular" mode and back to the "html source" mode the link changes to this,
<a Xonclick="function anonymous()
{
window.open(this.href,'','top=200,left=200,width=400,height=180');return false;
}" href="senseshttp://www.somesite.coml/user_pages/senses.html"><u>senses</u></a>
The editor keeps adding layers if i repeat (2) & (3),
<a Xonclick="function anonymous()
{
function anonymous()
{
window.open(this.href,'','top=200,left=200,width=400,height=180');return false;
}
}" href="senseshttp://www.somesite.com//user_pages/senses.html"><u>senses</u></a>
I tried using a regular anchor tag that with target="_blank", but i don't want the extra options (ie. scroll bars, menu bar, status bar, etc etc).
I'm using moodle 1.2.1. It didn't do that on moodle 1.1.1
Is there a way to work around this?
Is there a way to set the editor to accept javascripts?
Any help would be greatly appreciated!