Help talk:VisualEditor/User guide

About this board

Станислав Николаев (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 adds "index.php?title=" in front of every file link when saving

9 (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?


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

Are you running your own wiki? (talkcontribs)


1.35.7 (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 (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". (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. (talkcontribs)

It seems to be fixed in v1.39:

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.

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

Visual editor mode only opens in a new Google Chrome tab

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

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?

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

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

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

Please don's split parentheses pair among source

Omotecho (talkcontribs)

My update true to your change causes problem and labeled as "need update"; error message as follows has persisted before saving the translation; "There is an uneven amount of parenthesis: (): 1". I am afraid while the translation is true to your change, the translation system does not accept such update/change.

Whatamidoing (WMF) (talkcontribs)
Reply to "Please don's split parentheses pair among source"

How to use VE on forms?

3 (talkcontribs)

I remember seeing forms textarea using the Visual Editor. How is it done ? I didn't see it in the documentation.

Whatamidoing (WMF) (talkcontribs)

Why do you want to do that?

Krabina (talkcontribs)
Reply to "How to use VE on forms?"