views:

34

answers:

0

Can anyone figure out why jQuery rte plugin is changing my urls to relative links?

Any external links are fine but if the page i'm on is here http://www.example.com/admin/input/ and the url I want to link to is here: http://www.example.com/test/ the plugin will remove the http://www.example.com/ from my link and replace with ../

The url function in the tool bar wants to insert this html for me:

<a href="http://www.example.com/test/id/blah" target="_blank" title="" />Echoes of Ireland, March 13th, 2011</a>

...and uses this function to do it:

self.editor_cmd("insertHTML", html);

    lwRTE.prototype.editor_cmd = function(command, args) {
        try {
            this.iframe_doc.execCommand(command, false, args);
        } catch(e) {
        console.log(e)
    }
}

That's when I end up with an altered URL. I know nothing about prototype. Any help here?

Thanks.