VisualEditor/Feedback

About this board

Post your feedback about using the visual editor. Learn how to report problems clearly.

Need more attention? Report directly in Phabricator. The Wikimedia Foundation does not provide support for installing VisualEditor on third-party wikis.

You can read the guide to optimize the visual editor on your site. The guide explains how to set up citation templates.

View open developer tasks Report a new bug in Phabricator

Previous page history was archived for backup purposes at VisualEditor/Feedback/LQT Archive 1 on 2015-07-30.

Editor not work on various pages

1
212.172.13.57 (talkcontribs)

I have a mediawiki in current version 1.42.3 and try to use VisualEditor.

Some pages work, but on the most of the pages the visual editor gives out an error message. All other Wiki Features works fine, i cannot find any other problem then the visual editor.

I get the following error in the Popup:

[0d4e083bdcb1c5b07630e264] Exception caught: DOMElement::setAttribute(): Argument #2 ($value) must be of type string, true given

If i check the full backtrace i are lost in the media-wiki sorce code space :-)

Do you have any hint for me how i can get the error?

TypeError at C:\\inetpub\\wwwroot\\wiki-2023\\vendor\\wikimedia\\parsoid\\src\\Wt2Html\\PP\\Processors\\AddLinkAttributes.php(54)
from C:\\inetpub\\wwwroot\\wiki-2023\\vendor\\wikimedia\\parsoid\\src\\Wt2Html\\PP\\Processors\\AddLinkAttributes.php(54)
#0 C:\\inetpub\\wwwroot\\wiki-2023\\vendor\\wikimedia\\parsoid\\src\\Wt2Html\\PP\\Processors\\AddLinkAttributes.php(54): DOMElement-\u003EsetAttribute()
#1 C:\\inetpub\\wwwroot\\wiki-2023\\vendor\\wikimedia\\parsoid\\src\\Wt2Html\\DOMPostProcessor.php(139): Wikimedia\\Parsoid\\Wt2Html\\PP\\Processors\\AddLinkAttributes-\u003Erun()
#2 C:\\inetpub\\wwwroot\\wiki-2023\\vendor\\wikimedia\\parsoid\\src\\Wt2Html\\DOMPostProcessor.php(908): Wikimedia\\Parsoid\\Wt2Html\\DOMPostProcessor-\u003EWikimedia\\Parsoid\\Wt2Html\\{closure}()
#3 C:\\inetpub\\wwwroot\\wiki-2023\\vendor\\wikimedia\\parsoid\\src\\Wt2Html\\DOMPostProcessor.php(949): Wikimedia\\Parsoid\\Wt2Html\\DOMPostProcessor-\u003EdoPostProcess()
#4 C:\\inetpub\\wwwroot\\wiki-2023\\vendor\\wikimedia\\parsoid\\src\\Wt2Html\\DOMPostProcessor.php(967): Wikimedia\\Parsoid\\Wt2Html\\DOMPostProcessor-\u003Eprocess()
#5 C:\\inetpub\\wwwroot\\wiki-2023\\vendor\\wikimedia\\parsoid\\src\\Wt2Html\\ParserPipeline.php(170): Wikimedia\\Parsoid\\Wt2Html\\DOMPostProcessor-\u003EprocessChunkily()
#6 C:\\inetpub\\wwwroot\\wiki-2023\\vendor\\wikimedia\\parsoid\\src\\Wt2Html\\ParserPipelineFactory.php(278): Wikimedia\\Parsoid\\Wt2Html\\ParserPipeline-\u003EparseChunkily()
#7 C:\\inetpub\\wwwroot\\wiki-2023\\vendor\\wikimedia\\parsoid\\src\\Wikitext\\ContentModelHandler.php(154): Wikimedia\\Parsoid\\Wt2Html\\ParserPipelineFactory-\u003Eparse()
#8 C:\\inetpub\\wwwroot\\wiki-2023\\vendor\\wikimedia\\parsoid\\src\\Parsoid.php(191): Wikimedia\\Parsoid\\Wikitext\\ContentModelHandler-\u003EtoDOM()
#9 C:\\inetpub\\wwwroot\\wiki-2023\\vendor\\wikimedia\\parsoid\\src\\Parsoid.php(232): Wikimedia\\Parsoid\\Parsoid-\u003EparseWikitext()
#10 C:\\inetpub\\wwwroot\\wiki-2023\\includes\\parser\\Parsoid\\ParsoidParser.php(148): Wikimedia\\Parsoid\\Parsoid-\u003Ewikitext2html()
#11 C:\\inetpub\\wwwroot\\wiki-2023\\includes\\parser\\Parsoid\\ParsoidParser.php(253): MediaWiki\\Parser\\Parsoid\\ParsoidParser-\u003EgenParserOutput()
#12 C:\\inetpub\\wwwroot\\wiki-2023\\includes\\content\\WikitextContentHandler.php(376): MediaWiki\\Parser\\Parsoid\\ParsoidParser-\u003Eparse()
#13 C:\\inetpub\\wwwroot\\wiki-2023\\includes\\content\\ContentHandler.php(1663): WikitextContentHandler-\u003EfillParserOutput()
#14 C:\\inetpub\\wwwroot\\wiki-2023\\includes\\content\\Renderer\\ContentRenderer.php(67): ContentHandler-\u003EgetParserOutput()
#15 C:\\inetpub\\wwwroot\\wiki-2023\\includes\\Revision\\RenderedRevision.php(259): MediaWiki\\Content\\Renderer\\ContentRenderer-\u003EgetParserOutput()
#16 C:\\inetpub\\wwwroot\\wiki-2023\\includes\\Revision\\RenderedRevision.php(232): MediaWiki\\Revision\\RenderedRevision-\u003EgetSlotParserOutputUncached()
#17 C:\\inetpub\\wwwroot\\wiki-2023\\includes\\Revision\\RevisionRenderer.php(226): MediaWiki\\Revision\\RenderedRevision-\u003EgetSlotParserOutput()
#18 C:\\inetpub\\wwwroot\\wiki-2023\\includes\\Revision\\RevisionRenderer.php(164): MediaWiki\\Revision\\RevisionRenderer-\u003EcombineSlotOutput()
#19 [internal function]: MediaWiki\\Revision\\RevisionRenderer-\u003EMediaWiki\\Revision\\{closure}()
#20 C:\\inetpub\\wwwroot\\wiki-2023\\includes\\Revision\\RenderedRevision.php(199): call_user_func()
#21 C:\\inetpub\\wwwroot\\wiki-2023\\includes\\page\\ParserOutputAccess.php(379): MediaWiki\\Revision\\RenderedRevision-\u003EgetRevisionParserOutput()
#22 C:\\inetpub\\wwwroot\\wiki-2023\\includes\\page\\ParserOutputAccess.php(330): MediaWiki\\Page\\ParserOutputAccess-\u003ErenderRevision()
#23 C:\\inetpub\\wwwroot\\wiki-2023\\includes\\parser\\Parsoid\\ParsoidOutputAccess.php(134): MediaWiki\\Page\\ParserOutputAccess-\u003EgetParserOutput()
#24 C:\\inetpub\\wwwroot\\wiki-2023\\includes\\Rest\\Handler\\Helper\\HtmlOutputRendererHelper.php(774): MediaWiki\\Parser\\Parsoid\\ParsoidOutputAccess-\u003EgetParserOutput()
#25 C:\\inetpub\\wwwroot\\wiki-2023\\includes\\Rest\\Handler\\Helper\\HtmlOutputRendererHelper.php(587): MediaWiki\\Rest\\Handler\\Helper\\HtmlOutputRendererHelper-\u003EgetParserOutputInternal()
#26 C:\\inetpub\\wwwroot\\wiki-2023\\includes\\Rest\\Handler\\Helper\\HtmlOutputRendererHelper.php(451): MediaWiki\\Rest\\Handler\\Helper\\HtmlOutputRendererHelper-\u003EgetParserOutput()
#27 C:\\inetpub\\wwwroot\\wiki-2023\\extensions\\VisualEditor\\includes\\DirectParsoidClient.php(155): MediaWiki\\Rest\\Handler\\Helper\\HtmlOutputRendererHelper-\u003EgetHtml()
#28 C:\\inetpub\\wwwroot\\wiki-2023\\extensions\\VisualEditor\\includes\\ApiParsoidTrait.php(107): MediaWiki\\Extension\\VisualEditor\\DirectParsoidClient-\u003EgetPageHtml()
#29 C:\\inetpub\\wwwroot\\wiki-2023\\extensions\\VisualEditor\\includes\\ApiVisualEditor.php(232): MediaWiki\\Extension\\VisualEditor\\ApiVisualEditor-\u003ErequestRestbasePageHtml()
#30 C:\\inetpub\\wwwroot\\wiki-2023\\includes\\api\\ApiMain.php(1946): MediaWiki\\Extension\\VisualEditor\\ApiVisualEditor-\u003Eexecute()
#31 C:\\inetpub\\wwwroot\\wiki-2023\\includes\\api\\ApiMain.php(922): ApiMain-\u003EexecuteAction()
#32 C:\\inetpub\\wwwroot\\wiki-2023\\includes\\api\\ApiMain.php(893): ApiMain-\u003EexecuteActionWithErrorHandling()
#33 C:\\inetpub\\wwwroot\\wiki-2023\\includes\\api\\ApiEntryPoint.php(158): ApiMain-\u003Eexecute()
#34 C:\\inetpub\\wwwroot\\wiki-2023\\includes\\MediaWikiEntryPoint.php(199): MediaWiki\\Api\\ApiEntryPoint-\u003Eexecute()
#35 C:\\inetpub\\wwwroot\\wiki-2023\\api.php(44): MediaWiki\\MediaWikiEntryPoint-\u003Erun()
#36 {main}"
Reply to "Editor not work on various pages"
Summary by Clump

off-topic, but that page was created

163.5.23.4 (talkcontribs)
Agent utilisateur : Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 Edg/130.0.0.0

URL : https://fr.wikipedia.org/w/index.php?title=Lee_E._McMahon&action=edit&redlink=1 This page when going on the wikipedia page of Sed UNIX is described as non-existing. This is not the case, as there is indeed a wikipedia page who's name is Lee E McMahon. I'm not used to wikipedia so I don't know how to change this

Image copy paste broken after 1.32?

13
Summary by 2804:18:5046:F764:267A:9AAE:57C2:BB02

Um

77.86.179.245 (talkcontribs)

Any ideas why VisualEditor throws this exception to Chrome console with 1.33 and later when copy pasting image to editor,

Query.Deferred exception: files.map is not a function TypeError: files.map is not a function
    at OoUiSelectFileWidget.OO.ui.SelectFileWidget.setValue (https://wiki.local/load.php?debug=false&lang=en&modules=ext.visualEditor.core%7Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=09ovhn2:1048:538)
    at mw.ForeignStructuredUpload.BookletLayout.mw.Upload.BookletLayout.setFile (<anonymous>:1050:340)
    at Array.<anonymous> (<anonymous>:713:254)
    at mightThrow (https://wiki.local/load.php?debug=false&lang=en&modules=jquery&skin=vector&version=0w5wrgy:48:916)
    at process (https://wiki.local/load.php?debug=false&lang=en&modules=jquery&skin=vector&version=0w5wrgy:49:589)
jQuery.Deferred exception: files.map is not a function TypeError: files.map is not a function
    at OoUiSelectFileWidget.OO.ui.SelectFileWidget.setValue (https://wiki.local/load.php?debug=false&lang=en&modules=ext.visualEditor.core%7Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=09ovhn2:1048:538)
    at mw.ForeignStructuredUpload.BookletLayout.mw.Upload.BookletLayout.setFile (<anonymous>:1050:340)
    at Array.<anonymous> (<anonymous>:713:254)
    at mightThrow (https://wiki.local/load.php?debug=false&lang=en&modules=jquery&skin=vector&version=0w5wrgy:48:916)
    at process (https://wiki.local/load.php?debug=false&lang=en&modules=jquery&skin=vector&version=0w5wrgy:49:589)
jQuery.Deferred exception: files.map is not a function TypeError: files.map is not a function
    at OoUiSelectFileWidget.OO.ui.SelectFileWidget.setValue (https://wiki.local/load.php?debug=false&lang=en&modules=ext.visualEditor.core%7Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=09ovhn2:1048:538)
    at mw.ForeignStructuredUpload.BookletLayout.mw.Upload.BookletLayout.setFile (<anonymous>:1050:340)
    at Array.<anonymous> (<anonymous>:713:254)
    at mightThrow (https://wiki.local/load.php?debug=false&lang=en&modules=jquery&skin=vector&version=0w5wrgy:48:916)
    at process (https://wiki.local/load.php?debug=false&lang=en&modules=jquery&skin=vector&version=0w5wrgy:49:589)
Whatamidoing (WMF) (talkcontribs)

What image are you trying to paste? Are you pasting the code for an image that you copied from another wiki page, or an image from another website?

Titoshadow (talkcontribs)

Same behaviour observed in Firefox 72.0.1, after trying to copy an image from a Word document


79.135.56.229 (talkcontribs)

Same problem on Chrome 79.0.3945.117 (64 bit)

79.135.56.229 (talkcontribs)

Same problem on version 1.34

Whatamidoing (WMF) (talkcontribs)

Do you realize that you are supposed to use Special:Upload to put images on your wiki, and not just copy/paste?

170.253.44.150 (talkcontribs)

What os your point? We can achieve the functionality but being less usable is preferred?

Some extensions like ClipUpload actually manages that, we are talking about just one step more, which was working and now does not.

Whatamidoing (WMF) (talkcontribs)

If you are having trouble with Extension:ClipUpload, then you should contact the maintainers of that extension. Extension:VisualEditor has never supported uploading via copy/paste, and supporting copy/paste uploads from the web is actively unwanted by Wikimedia Commons and the Wikipedia communities.

2001:569:FCE0:7900:F485:2E9F:DF7F:1893 (talkcontribs)
Titoshadow (talkcontribs)

Yet here we are, still without a fix after several years.

213.212.36.180 (talkcontribs)

Absolute pathetic that it's still not a built in feature. This is why mediawiki is being phased out for stuff like Confluence.

Rviauiilyo (talkcontribs)

I completely not agree with you.

If something is unwanted, does no seems that it has to be removed from a system.

This feature was working before and now not. Allowing users to do it or to enable it should be a good point.

You say that it was never supported, but it was here and it was a great feature as lots of users like me use wikimedia to store there IT process and then use copy/paste of screenshot.

How could you explain that if it was not supported it was working before and now it throw an error ?

38.146.48.251 (talkcontribs)

using 1.34 - on line 5803 in oojs-ui-widgets.js, in OO.ui.SelectFileWidget.prototype.setValue, i changed the line files = files.slice(0,1) to files = [files.slice(0,1)] and i'm getting the image upload popup (error was calling .map on a single object not an array). Doesn't quite fix the problem for me, but it's progress (no thumbnail on the upload popup and when i hit upload i get a filename error)

Reply to "Image copy paste broken after 1.32?"

Comparing Diffs with Visual Comparison

1
Myrealnamm-alt (talkcontribs)

Hello,

I'm not sure if this message goes here, but I'm noticing that this edit: en:w:Special:Diff/1221607731. Comparing this edit visually is odd, because that is not what the editor added (see it in the Wikitext comparison). Why is this happening?

Reply to "Comparing Diffs with Visual Comparison"

Can't paste text+URLs in code formatting

1
174.89.12.36 (talkcontribs)

Strangely, pasting results in either nothing or U+2601 Cloud.

  1. Click "Computer code" in VE or reply tool
  2. Copy Location: https://
  3. Paste into the browser URL bar (to remove formatting. Ctrl+Shift+V can skip steps 3-4)
  4. Cut
  5. Paste into the editor

It gives me the Unicode cloud symbol but I expected to see what I tried to paste.

Reply to "Can't paste text+URLs in code formatting"
Philogo64 (talkcontribs)
Philogo64 (talkcontribs)

Fausse alerte, apparemment mes modifs ont bien été prises en compte. Après être sorti du mode édition, il m'a été demandé si je voulais reprendre les modifs... :) J'ai donc dit oui. Désolé pour le spam.

Philogo64 (talkcontribs)

Eh non, en fait j'ai bien un problème sans fin : je reviens sur la page en mode édition, puis je veux la publier, j'ajoute un commentaire, et je clique sur publier ou enregistrer et là j'ai un message d'erreur qui dit que la page est supprimée !!

Comme je ne sais pas de quelle erreur il s'agit je suis coincé....

Reply to "suppression page !"

Using Visual Editor on just a single section?

2
RoySmith (talkcontribs)

One of the things that annoys me about VE is that you can't edit just a single section. Even if you click on the "edit" link next to an individual section heading, you still end up editing the entire page. I remember reading somewhere that due to the way VE parsed the page (or something like that), this was unavoidable.

But, I just noticed that on wikitech, it does work! Clicking the "edit" link next to a section head does indeed get you into VE looking at just that section. For example: https://wikitech.wikimedia.org/w/index.php?title=Help:Toolforge/My_first_Flask_OAuth_tool&veaction=edit&section=1. Wonderful! So, how does this work? Is there some option I need to enable? Or is wikitech running a newer version of VE and I just have to wait for it to get rolled out to enwiki?

Jdforrester (WMF) (talkcontribs)

@RoySmith: That is an experimental feature that the Editing team rolled out to wikitech for testing. Not sure if they feel comfortable rolling it out to other wikis; it has some potential for confusion, and would likely need a lot of careful work before then, but I defer to them. :-)

Reply to "Using Visual Editor on just a single section?"

Stop the VisualEditor from creating duplicated references in the reference list

3
Sabelöga (talkcontribs)

When I copy a reference and paste it back in somewhere else, the reference list creates a new bullet list in the reference list, despite the reference already being there. This can quickly clutter the reference list, especially if placed more in the middle of an edited article.

TheDJ (talkcontribs)

You mean when you don't copy it from the existing document (in edit mode), but from read mode, or a different article, correct ?

Sabelöga (talkcontribs)

What I mean is that if I copy a reference from another page and if I were to add it more then one time it creates two different references with the same content.

Here's a screenshot of how it looks. https://imgur.com/a/2BxuwXU

Reply to "Stop the VisualEditor from creating duplicated references in the reference list"

Clearing formatting and links

2
Whatamidoing (WMF) (talkcontribs)

This is a general question for anyone who wants to share an opinion:

The "Style text" (character formatting) menu in VisualEditor has options like bold and italics. At the end of the menu, there is "Clear formatting", which removes bold, italics, etc., and also removes any [[link]]s. This is consistent with what some web-based software does (like Gmail). Do you think this is a good approach, or would you rather have "clear formatting" retain any links to other pages/other websites?

Nnemo (talkcontribs)

I did not know that links were formatting. ;-) In my opinion, indeed this is inconsistent, and "Clear formatting" must keep links.

Reply to "Clearing formatting and links"
Imoyokan-scratch (talkcontribs)

Happy new year!

On my wiki site, only the main namespace can use the visual editor. How can I use it in other namespaces?

Thanks.

This text was generated by machine translation(DeepL).

Reply to "Other Namespace"