Extension talk:VisualEditor/2023
Add topic| This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
Please note that the Wikimedia Foundation does not provide support for installing VisualEditor on third-party wikis. However, if you have a question we may try to help.
"Something went wrong" message when used in conjunction with Moderation plugin
[edit]Sometimes when users submit an edit, the Visual Editor throws this error. Although it seems like just a visual bug.
https://i.imgur.com/C4zH4ZK.png Derf Jagged (talk) 01:09, 24 February 2023 (UTC)
'Media' Namespace being translated in VisualEditor
[edit]Hello there,
maybe somebody knows this behavior and can help me. I have some Wikilinks with the format [[Media:name of the media.pdf | link title]].
My Problem is, that everytime, when I edit the article with Visual Editor (I do not change anything in the wikilink, just other text), the link looks like this:
url-to-my-wiki/index.php?title=Index.php?title=Medium:name_of_the_media.pdf&action=edit&redlink=1
Does anyone have any idea what is happening here? Wikivic82 (talk) 13:16, 1 March 2023 (UTC)
- This is a "dirty diff" normalising your link despite you not editing it. It's generally a sign that your set-up with Parsoid isn't the full-bore version including RESTBase caching.
- The reason it's changing it that your wiki is presumably set to a language whose default name for the namespace is "Medium" not "Media", which from built-in languages is de, nb, or pfl (or languages that inherit from those), or you've set it manually in LocalSettings. Jdforrester (WMF) (talk) 15:57, 1 March 2023 (UTC)
- Indeed I have set "de" as default language in LocalSettings ($wgLanguageCode = "de";)
- Thank you for the answer, can you please point me on the right direction on how to fix this? I do not understand what you mean with full-bore version. Wikivic82 (talk) 09:14, 2 March 2023 (UTC)
It is possible but very tricky to set up RESTBase; there are instructions here, but generally we don't recommend this. It's also possible that my diagnosis is wrong, and you'd do a lot of work only to still have the bug, sorry. (One of my colleagues asks if the link being changed "is actually a redlink or if it's wrongly detected as such", because this might be a different bug.)Thank you for the answer, can you please point me on the right direction on how to fix this? I do not understand what you mean with full-bore version.
- (Also, the RESTBase system itself is being decommissioned and the functionality moved into MediaWiki, so if you wait a year or so and upgrade to latest this problem might go away.) Jdforrester (WMF) (talk) 13:58, 2 March 2023 (UTC)
- Actually, belay all that; we think you've uncovered a bug that happens regardless of RESTBase (and post-integration from MediaWiki 1.40+). We've filed this as https://phabricator.wikimedia.org/T331122 and hopefully will fix this soon. Jdforrester (WMF) (talk) 15:22, 3 March 2023 (UTC)
Caught exception of type RuntimeException
[edit]The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi all,
Brand new to MediaWiki so apologies if I'm missing something silly here but I have been running into an issue enabling the VisualEditor.
| MediaWiki | 1.39.2 |
| PHP | 8.2.3 (fpm-fcgi) |
Host software: nginx 1.14.2 (Debian)
| VisualEditor | 0.1.2 |
This install was done using the LocalSettings.php setup to enable the extension.
Error message: [cf227a0b7941530496986bd2] Caught exception of type RuntimeException
(The numbers\code at the beginning change on each refresh)
The only "non-standard" part of the set up (I think) is that the wiki is not installed in the root of the webserver. It is located at: <ipaddress>/cott/index.php
Any pointers would be appreciated.
Thanks in advance! BluRael (talk) 22:46, 3 March 2023 (UTC)
- Hey all,
- Nevermind on this one, I've figured it out.
- After much searching I've foud I can use $wgShowExceptionDetails = true; to find the "actual" error message that is apparently hidden by default?
- The problem in my case is that I required php8.2-bcmath or php8.2-gmp.
- Installed both of those and now it loads perfectly fine.
- Leaving my solution here in case anyone else runs into the issue.
- Happy Wiki-ing! BluRael (talk) 01:16, 5 March 2023 (UTC)
1.39.2 message on the wiki
[edit]The release from 1.38.4 to 1.39.2 is ok but i ve this message on the top of my wiki
what do i ve to do?
Use of SkinTemplateNavigation hook (used in VisualEditorHooks::onSkinTemplateNavigation) was deprecated in MediaWiki 1.39. [Called from MediaWiki\HookContainer\HookContainer::run in /homepages/3/d938089406/htdocs/clickandbuilds/MediaWiki/Srxteam/includes/HookContainer/HookContainer.php at line 137] in /homepages/3/d938089406/htdocs/clickandbuilds/MediaWiki/Srxteam/includes/debug/MWDebug.php on line 381 Schub srx (talk) 14:10, 11 March 2023 (UTC)
- it 's gone Schub srx (talk) 15:03, 11 March 2023 (UTC)
error message whith the modification button
[edit]Error contacting the Parsoid/RESTBase server (HTTP 500)
i m on the 1.39.2 (before on 1.38.4)
Something wrong with an extension ? Schub srx (talk) 14:13, 11 March 2023 (UTC)
- i ve reinstalle the extension visual editor with the file include in the 1.39.2 rellease
- the message is gone :) , but the blue progress bar stop at the 2/3? Schub srx (talk) 15:03, 11 March 2023 (UTC)
Editing a previous revision does not diff against current page
[edit]I have sometimes wanted to edit a page by starting from a revision before the current one â by clicking "Edit" on an older version of the page â so that I can start from what I consider to be a better revision of the page. Suppose that the latest revision was a step down overall, but with a couple points worth preserving. In the past, I could edit an older revision without losing track of subsequent changes by using the "Review your changes" button. I would be shown the effect my work-in-progress edit will have on the current page, which would allow me to take the last edit into account in case I want to copy and preserve some of those changes.
I have been troubled recently to see that the changes shown in the "review" are based on whatever revision comes before the one I am editing, not the current page. Yet when I click "Publish changesâŚ" I will be making a change that is based on the current page. The preview should reflect the actual difference I will be making to the current state of the page, should it not? I'm not sure if this is a recent change in the extension or if I am more accustomed to the previous editors used on Wikipedia and am just now noticing this change in behavior in the new one. Iritscen (talk) 23:08, 30 April 2023 (UTC)
Textcolor
[edit]Is it possible to add an option to select a Textcolor? Unfortunately at the moment this is only possible with some html additions but not with the visual editor. 95.223.2.40 (talk) 07:30, 10 May 2023 (UTC)
Extending VisuaEditor, need some pointer
[edit]Hi,
I'm a developer and I want to add a button to the visual editor, when clicked, a popup appear showing some texte box, when validated, the wikicode is updated according to the textebox value.
I browsed the VisualEditor code base, and I'm totally lost.
Where should I start ? What files should I be interested in ? Which methods ?
Best regards EmmanuelIstace (talk) 08:36, 17 May 2023 (UTC)
Dynamic Naming of Media Uploads?
[edit]When uploading an image it always requires me to type a unique name. I upload so many images to our mediawiki that this becomes a time consuming extra step.
Is there a way to bypass this or to provide some dynamic naming ie; filename.timestamp or any other solution for me to by pass this?

What sayeth the group? Compumatter (talk) 23:22, 28 August 2023 (UTC)
- I would also be interested in a solution for this. Krabina (talk) 06:40, 20 September 2023 (UTC)
Updating the Firewall
[edit]If the visual editor is not loading make sure you setup a firewall exception to your server, open port 8142 for both UDP and TCP. Sharvey1983 (talk) 18:40, 3 September 2023 (UTC)
Signatures format
[edit]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? Nanash (talk) 23:19, 20 September 2023 (UTC)
Templates are parsed, but CSS not working correctly
[edit]Hey guys,
I have a major problem with the parsing of a template we wrote. We have a template that uses a start and end template page to build a kind of a hexagon blog. We used the unordered list (<ul>-Tag) and custom counts of items (<li>-Tags) to create a good looking block of hexagons. This works for the page in the view-mode pretty fine.
Since the VE startet to show us the template visually (what I love, btw.) our templates are shown as they where without the <ul>-tag which looks strange and avoids the real styling to be loaded correctly. It kind of destroys the whole look. Seems like the editor closes the <ul>-Tag before adding the other Items. So in the HTML-code the <li>-tag isn't put in the <ul>-tags anymore.
Is there a solution for these kind of templates? (In terms of rewriting the template) Or can I disable the parsing for this specific template or the entire wiki somehow?
Does anyone have the same problems? Aploe (talk) 15:59, 17 October 2023 (UTC)
Galleries seem to rename the image location
[edit]I'm VERY new at this, so I apologize in advance for my inexperience.
I'm using VisualEditor to add galleries to my pages -- WYSIWIG works extremely well for me, as a newbie to this sort of project -- and every single time I edit or even touch a gallery, it adds "Index.php?title=" to the file name, breaking ALL the files in the gallery. If the gallery isn't ever touched outside of the first time, it loads fine, but the moment you try to edit it, it renames all the file locations and everything breaks.
Does anyone know what is causing this, and how I can fix it? I've barely started this (private, personal project) Wiki but having multiple galleries is going to be a necessary thing :( BlueStripedBoxers (talk) 15:13, 30 October 2023 (UTC)
Cursor position
[edit]I'm new at VE, so please forgive my incompetence regarding some questions.
After inserting a Node (array of data with {type: 'mynode'}{type: '/mynode'}) at the end of a paragraph, the cursor is not positioned correctly (cursor is inserted before the node). There are no such problems in the middle of the sentence.
Insertion is performed using the insertContent method.
Can you please tell me what I'm doing wrong?
Thank you very much!!!!!!!!!!! Mikasa7 (talk) 14:39, 1 November 2023 (UTC)
Error contacting the Parsoid/RESTBase server: (curl error: 60)
[edit]When using a self-signed cert signed by an internal root CA, I was able to find a workaround by placing our org's root CA certificate in the trust store of the server running MediaWiki.
On CentOS 7:
cp internal_root_ca.crt /etc/ssl/
ln -s /etc/ssl/internal_root_ca.crt /etc/pki/ca-trust/source/anchors/
update-ca-trust Grimm665 (talk) 21:35, 22 November 2023 (UTC)