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

Creating and modifying plugins.
Post Reply
stm999999999
Regular
Posts: 1531
Joined: Tue Mar 07, 2006 11:25 pm
Location: Berlin, Germany
Contact:

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

Post 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). :-(
Ciao, Stephan
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

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

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
stm999999999
Regular
Posts: 1531
Joined: Tue Mar 07, 2006 11:25 pm
Location: Berlin, Germany
Contact:

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

Post 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?
Ciao, Stephan
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

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

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply