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).
wiki-links-plugin - link to entry has a problem
-
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
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).
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
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
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/
# 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
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?garvinhicking wrote:Hi!
Yes, because the wikilink-entry always puts the title of an entry inside the <a> tag, not your highlighted words.
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
Hi!
Best regards,
Garvin
Yes, but the whole return logic of the plugin needs to be wrapped in a different JS output.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?
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*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?
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/
# 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/