Would it work for you to have a separate macro for magnet links so you would type
something like:
{{magnet to="whatever syntax is used in magnent links" /}}
It is relitively easy to create a macro like this, it can be done using a groovy script in
a wiki page.
Caleb
Ivan Levashew wrote:
Hello!
I'd like it to be possible to create links with default labels.
I mean, [[Space.Page]], [[
http://website/]] without "label>>".
Speaking for myself, I'd like magnet links to have default labels
mostly.
I have recompiled WYSIWIG editor several times, and I have added new
Wizard steps, so I've got some experience with GWT.
I'm thinking about several use cases. The user should be able to
enter magnet link as is. The user should be able to construct magnet
link from scratch. And a hybrid use case: the users enters a magnet
link in the first wizard step and improves it in the second one. An
improvement is e. g. changing file name, adding alternative
source and so on. I'm implementing two wizard steps: "enter" and
"improve".
Most often, it is wanted a label to be default. Default magnet
label generator produces things like
"klein_shock_doctrine.djvu (8.19 Mb)". These default labels mirror
a content of magnet links in a human-readable form.
But it is not obvious how to achieve this. I've tweaked GWT editor
to allow empty labels in magnet links, but such links look empty in
WYSIWIG and are being deleted on save.
--
If you want to get to the top, you have to start at the bottom
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs