W dniu piątek, 5 kwietnia 2019 Carles Pina i Estany <[email protected]>
napisał(a):

>
> Hi,
>
> I've setup a Mediawiki for internal usage with VisualEditor.
>
> Using the "Edit Source" I can do something like:
> [[Media:Traduccio.jpg|test]]
>
> To have a direct link to a file (instead of the page landing page).
>
> Can I achieve the same using VisualEditor?
>
>
If you just type “Media:Traduccio.jpg” in the link dialog, it should work
as expected. Although I believe it might not have autocompletion, unlike
normal links.



> Even a more important question maybe, if a page had a Media link and
> then I use the Visual Editor somewhere in this page it gets changed by:
>
> [//localhost:8080/images/c/ce/Traduccio.jpg test]
>
> (note that this instance has $wgServer = "http://localhost:8080";; ,
> but I would like the link to stay as Media:File.jpg or at least to be
> like /images/c/ce/Traduccio.jpg without the hostname... but ideally
> leaving the Media)
>
> Is it possible using VisualEditor? Some configuration that needs to be
> changed?
>
> I downloaded it from here, shoul be this one:
> https://extdist.wmflabs.org/dist/extensions/VisualEditor-
> REL1_31-6854ea0.tar.gz
>
>
We fixed this bug in VisualEditor for MediaWiki 1.33:
https://phabricator.wikimedia.org/T198511

Note that you’ll also need a fairly recent version of Parsoid (not sure how
their releases work).


Thank you very much,
>
> --
> Carles Pina i Estany
>         GPG Key 0x8CD5C157
>
> _______________________________________________
> Wikitech-l mailing list
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l



-- 
Matma Rex
_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to