Page 1 of 1

wiki-links-plugin - link to entry has a problem

Posted: Sun Oct 22, 2006 7:24 pm
by stm999999999
hello,

the wiki-link-plugin makes a "link-to-entry"-Button to the editor. When I select a word in the text and click to "url" the link will go around the higlighted word. when I do the same with "link to entry" the link go to the end of the text instead of making it around the selected word(s). :-(

Re: wiki-links-plugin - link to entry has a problem

Posted: Mon Oct 23, 2006 11:39 am
by garvinhicking
Hi!

Yes, because the wikilink-entry always puts the title of an entry inside the <a> tag, not your highlighted words.

Your idea is nice too, but would require some additional feature coding and involve a lot of JS, which I'm currently really disliking. :)

Best regards,
Garvin

Re: wiki-links-plugin - link to entry has a problem

Posted: Mon Oct 23, 2006 1:05 pm
by stm999999999
garvinhicking wrote:Hi!

Yes, because the wikilink-entry always puts the title of an entry inside the <a> tag, not your highlighted words.
hm, but the URL-Button does the same: If nothing is highlighted it asks for the link text, if something is selected it does not ask but use the selected text. Is it not possible to take these code?

and besides this, isn't it a good idea and possible to add the link at the position of the text-cursor and not at the article-end?

Re: wiki-links-plugin - link to entry has a problem

Posted: Mon Oct 23, 2006 1:59 pm
by garvinhicking
Hi!
hm, but the URL-Button does the same: If nothing is highlighted it asks for the link text, if something is selected it does not ask but use the selected text. Is it not possible to take these code?
Yes, but the whole return logic of the plugin needs to be wrapped in a different JS output.
and besides this, isn't it a good idea and possible to add the link at the position of the text-cursor and not at the article-end?
That would be the same JS-wrapping problem. Maybe someone who likes to push those buttons has the time and motivation to look into the plugin? *G*

Best regards,
Garvin