Help talk:VisualEditor/User guide

About this board

Visual Editor adds "index.php?title=" in front of every file link when saving

11
216.48.86.87 (talkcontribs)

If I have a file link like [[Media:filename.pdf|filename]] on a page that I'm editing with the visual editor, it changes it to [[index.php?title=Media:filename.pdf|filename]] and every other similar file link in the page. These newly renamed filelinks don't work. Is there a way to stop Visual Editor from doing that?

Stephen

Elitre (WMF) (talkcontribs)
Whatamidoing (WMF) (talkcontribs)

Are you running your own wiki?

216.48.86.87 (talkcontribs)

Yes.

1.35.7
213.61.173.172 (talkcontribs)

I have a similar issue with the categories.

When editing a page in visual editor the categories are red and displayed as "index.php?title=Kategorie:XXX". When saved and viewed it is a normal link.

Same also for some of the links

213.61.173.172 (talkcontribs)

When I add $wgUsePathInfo=true; in my Localsettings this issue is solved, BUT then I can no longer change the Namespaces in "Special:AllPages".

216.48.86.87 (talkcontribs)

Thanks! This worked for me. I was hoping to stay with 1.35 because it is an LTS. I checked "Special:AllPages" and it seemed to work for me but I really only have standard Namespaces and may not be using Namespaces as fully as you.

213.61.173.172 (talkcontribs)

It seems to be fixed in v1.39: phabricator.wikimedia.org/T270219

I'm using v1.38 and will test to upgrade

2605:A601:AFE8:4C00:EC52:178A:F7A6:444B (talkcontribs)

Adding $wgUsePathInfo=true; to LocalSettings resolved my issue.

Gigisoave (talkcontribs)

I'm using v1.41 and I set $wgUsePathInfo=true; in my Localsettings, but still I get the links changed. Thank you Luigi

School4schools (talkcontribs)

I added a Support Desk topic on this issue here: Visual editor breaks category:fubar on pages on Project:Support desk (mediawiki.org)

Just found this page, so I will update here if anyone can help me on that request.

Reply to "Visual Editor adds "index.php?title=" in front of every file link when saving"

Searching TemplateData's SuggestedValues

1
Torenity (talkcontribs)

I have a template that is set up with TemplateData and a long list of suggested values. When using the VisualEditor to insert this template, our editors can't search through the suggested values easily through the combobox.

Is it possible to configure the search for the combobox of suggestedvalues? It seems to use a "start with" search function instead of "contains"


Example:

I want to use the suggested value "Chapter 1.00" when inserting the template. I type in "1.00" and cannot find that value. I end up having to type in "Chapter"

Reply to "Searching TemplateData's SuggestedValues"

Replacing an image from the person´s information card

1
Lil Herrera (talkcontribs)

I need help for replacing the picture on the person´s information card template.

Reply to "Replacing an image from the person´s information card"
Станислав Николаев (talkcontribs)

Hello. In the Bulgarian Wikipedia in "Edit" mode with the visual editor, when copying a given source and then editing the copied one, both were changed. This is really a problem, it was not so few days ago. Some solution?

Reply to "Sources problems"

Visual editor mode only opens in a new Google Chrome tab

1
Afanasovich (talkcontribs)

Something changed a while ago, and now when I click the "Edit" button/link, nothing happens. To be precise, the page address changes: &veaction=edit&section=1 is added, but the editing mode does not start. The only thing that helps is opening “Edit” in a new browser tab, which is very inconvenient.

I use Google Crome 119.0.6045.124. OS Windows 11, macOS Sonoma — the same problem.

I mainly work on the Russian-language Wikipedia, the page addresses contain Cyrillic

Reply to "Visual editor mode only opens in a new Google Chrome tab"

Using the Visual Editor changes the category text

1
Taumelski (talkcontribs)

Hello there,

I have the issue that the visual editor changes the category

from: [[Kategorie:Ressourcen]]

to: [[index.php?title=Kategorie:Ressourcen]]

It happens when I open the page and make a change with the visual editor. It doesn't happen when I open it in the normal source editor. Changing the category with the visual editor to the right category changes it to what it should be.


Is there a way to change that behaivour?

I'm using MediaWiki 1.40.0

Reply to "Using the Visual Editor changes the category text"

When did the bug with HTML comments being deleted by Visual editor get fixed?

2
OncMD (talkcontribs)

I'm using a site running MediaWiki 1.35.13 and VisualEditor 0.1.2, and we've noticed that HTML comments which are inserted either by the Visual Editor or in wiki code with <!-- TEXT --> get deleted from the page if we use the visual editor. We plan to upgrade, but am not sure if the but is fixed in the latest version of VisualEditor compatible with the latest LTS version of MediaWiki, or if we would need to upgrade to an even older version.


Can anyone help inform us when this comment bug was fixed so that we know what minimum software versions we need to upgrade to? Thank you!

Thiemo Kreuz (WMDE) (talkcontribs)

As far as I'm aware of VisualEditor was never supposed to delete comments. I tried to search for related bug reports but couldn't find much, maybe except for this one. Impossible to tell if this related without knowing more about the circumstances. I think it's easier of you update to the next LTS first and see if you can still reproduce the issue.

Reply to "When did the bug with HTML comments being deleted by Visual editor get fixed?"

Edit wikitext between templates

6
Summary by Thiemo Kreuz (WMDE)
Dimka665 (talkcontribs)

I made 3 templates(1col, 2col, End) that generate 2 columns layout. Can I edit wikitext between templates in Visual Editor?

Visaul Editor 2 columns

Thiemo Kreuz (WMDE) (talkcontribs)

Yes. There should be a little [[]] button at the bottom that says "Add wikitext".

Dimka665 (talkcontribs)

This let edit source code. I want to use Visual editor for that.

Thiemo Kreuz (WMDE) (talkcontribs)

Maybe you can explain your example in more detail? What wikitext do you want to place between the three templates you mentioned? Usually the issue is that a piece of wikitext in such a context is "unbalanced", which means it doesn't make sense on its own but only in the context of the templates. But what the templates mean is hidden in their code and cannot be understood by tools like VisualEditor.

Dimka665 (talkcontribs)

  <div class="container"> # 1col template

<div class="col1"> # 1col template

wikitext 1

</div> # 2col template

<div class="col2"> # 2col template

wikitext 2

</div> # end template

</div> # end template


Visual Editor joins it into one template context and forbid to edit in visual mode.

Dimka665 (talkcontribs)

I'd like to prevent creation of Template content object

Nanash (talkcontribs)

The default signature function in the visual editor currently uses the timestamp signature (~~~~). I would like it to use the signature without timestamp (~~~).

Is it possible to configure this function (as it is, for example, for the wikieditor via the Mediawiki:Sig-text page)?

Thiemo Kreuz (WMDE) (talkcontribs)

Unfortunately, this appears to be hard-coded in the code.

Whatamidoing (WMF) (talkcontribs)

I think you might be able to fake it with a subst:d template.

Nanash (talkcontribs)

Yes, I could create a template. But using it would be even more of a hassle than shifting between VE and the wikieditor.

Reply to "Signature format"

Pic not showing on users guide/citation template

1
Omotecho (talkcontribs)
Reply to "Pic not showing on users guide/citation template"