I think I've answered my own question.

Find the section that reads:

        for (var cpt=0; cpt<links.length; cpt++) {
                links[cpt].href=links[cpt].ref; //to avoid IE conversion of
relative URLs to absolute
                links[cpt].removeAttribute("ref");
        }

and replace it with:

        for (var cpt=0; cpt<links.length; cpt++) {
                if (links[cpt].ref) {
                        links[cpt].href=links[cpt].ref; //to avoid IE 
conversion of
relative URLs to absolute
                        links[cpt].removeAttribute("ref");
                }
        }

If anyone knows any better method, grateful to hear it.

You can also replace the following line:

        return IEeditor.beforeLinkPostProcessor(text).replace(/<a href="#([^>]
*)">([^<]*)<\/a>/gi,"[[$2|$1]]");

with

        return IEeditor.beforeLinkPostProcessor(text).replace(/<a href="([^>]
*)">([^<]*)<\/a>/gi,"[[$2|$1]]");

and then if you have imported HTML text into your article it should
convert <a href="...">...</a> links into wikitext links - warning
though, haven't tested this at all thoroughly.

Jonathan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to