Jump to: navigation, search

About this board

Previous discussion was archived at Talk:VisualEditor/Archive 1 on 2015-09-01.

By clicking "Add topic", you agree to our Terms of Use and agree to irrevocably release your text under the CC BY-SA 3.0 License and GFDL (talkcontribs)


We have now got VE up and running (on Mediawiki 1.27) but have some complex InfoBoxes that just don't look too good in VE. There is no requirement for my users to change these in VE as we use SMW properties and forms to control all Infooxes. Is there any way I can exclude portions of text or even sections from VisualEditor on a given page when VE is launched via the Edit button.

Any help appreciated.

Jongfeli (talkcontribs)

Please read: (talkcontribs)

Thank you for the response. Looks like we are out of luck. The __NOVISUALEDITOR__ seemed like a really good idea for full page VE disablement. To be honest I was hoping for one better and was hoping there was going to be <novisualeditor> </novisualeditor> set of tags, similar to the tag in concept. I will mention to the SMW team to see if they have any ideas. Once again thanks.



Reply to "Excluding Sections / Text From VE"
Summary by Whatamidoing (WMF)
JJBers Public (talkcontribs)

I use both the WikiMarkup editor and the VisualEditor all the time, I was edit a project page for a while, and when I went to a article to make a small grammar fix, I noticed something, whenever you are finished editing, after you type in the edit summary, the enter key doesn't save the edit. What I'm saying is that I wish the enter key would work for at least the major Wikipedias in the VisualEditor some time soon. I don't know how hard this will take, but I hope it isn't too long to integrate.

JJBers Public (talkcontribs)

Wrong area, whoops!

Parsoid crashes when processing articles with codeblocks

Satttarov (talkcontribs)

Hello, folks! When I create an article in our private wiki with more then four codeblocks, save it and try to edit later, those codeblocks aren't appear in editor. And when I close the editor, page freezes for about a minute then pass. But if I try to launch editor on this page again it crashes with error "HTTP 0" on parsoid logs I see this:

[warning][testwiki/Тестовая_страница] non-200 response: 504 <html>
<head><title>504 Gateway Time-out</title></head>
<body bgcolor="white">
<center><h1>504 Gateway Time-out</h1></center>
[error][testwiki/Тестовая_страница] Batch request failure for "f1c423e85011b3500256b9b5e736d7a0": 504
Error: Batch request failure for "f1c423e85011b3500256b9b5e736d7a0": 504
at BatchRequest.ApiRequest._requestCB (/usr/lib/parsoid/src/lib/mw/ApiRequest.js:421:11)
at Request.self.callback (/usr/lib/parsoid/node_modules/request/request.js:198:22)
at Request.emit (events.js:98:17)
at Request.<anonymous> (/usr/lib/parsoid/node_modules/request/request.js:1063:14)
at Request.emit (events.js:117:20)
at IncomingMessage.<anonymous> (/usr/lib/parsoid/node_modules/request/request.js:1009:12)
at IncomingMessage.emit (events.js:117:20)
at _stream_readable.js:929:16
at process._tickCallback (node.js:419:13)
[warning][testwiki/Тестовая_страница] non-200 response: 504 <html>
<head><title>504 Gateway Time-out</title></head>
<body bgcolor="white">
<center><h1>504 Gateway Time-out</h1></center>

Somebody encountered the same problem? Please help, this error completely defeats the purpose of our wiki.

Whatamidoing (WMF) (talkcontribs)

@SSastry (WMF), have you seen anything like this before?

SSastry (WMF) (talkcontribs)

I haven't seen this before ... but, can you paste the contents of that page for us to inspect? Looks like mediawiki is not able to provide information back to Parsoid ... either it is taking too long and timing out, or there is some other error that is causing this on the mediawiki end.

Satttarov (talkcontribs)

For the sake of testing I'm using these blocks. It doesn't matter what those blocks contain, if there is more than four blocks, Parsoid hangs as I described before.

<syntaxhighlight lang="bash">



Thanks in advance.

Arlolra (talkcontribs)

At first glance, that looks like a deadlock.

Do things get worse when you remove batching?

parsoidConfig.useBatchAPI = false;

Is this specific to the syntaxhighlight extension? What if you tried with <source>?

Arlolra (talkcontribs)

Sorry, <source> wasn't a good test case. I wanted an extension tag not provided by the same extension. Try <gallery>.

Reply to "Parsoid crashes when processing articles with codeblocks" (talkcontribs)

Hello Can any body take care about the ticket I've already open at :

the question is that I can see VisualEditor running in my wiki with the configuration I've describe, I do not

Know what is the problem.

Thanks in advanced. (talkcontribs)

I still have the trouble , you can see in the link, any help?, thansk.

Whatamidoing (WMF) (talkcontribs)

Are you running "matching" versions of MediaWiki, VisualEditor, and Parsoid? Your note on Stack Overflow said that you're running MediaWiki 1.26.2 but did not (AFAICS) mention the version numbers for the extensions. (talkcontribs)

I'm running mediawiki version 1.27.0;

the visual editor I've downloaded from the visualeditor page form mediawiki with:

cd extensions git clone cd VisualEditor git submodule update --init (talkcontribs)

I'm thinking I am not using the correct version of parsoid, nodejs and VisualEditor with work right all together with de mediawiki 1.27.0 version.

Any help?, thank you very much (talkcontribs)

I would apreciate if any body can give me the links and the correct protocol to dwonload and install the correct version of parsoid, nodejs and VisualEditor for mediawiki 1.27.0, thanks in advanced.

Whatamidoing (WMF) (talkcontribs)

I don't know how to install the software myself. If we're lucky, someone else will be able to help us.

Whatamidoing (WMF) (talkcontribs)

I had a look at the documentation, and this might be what you want:


Special:ExtensionDistributor/VisualEditor (talkcontribs) (talkcontribs)

I'm afraid this wiki documentation or wiki does not show the correct protocol to install the visual editor, I've spent a lot of time trying without result, I'm thinking about change the product for a wiki, does not give me the correspondent support or help.

the documentation of this wiki is so rolled that is imposible to configure this extension, is not clear at all, apart of that I think there woul be a wiki page describing the complete protocol to install the 3 products , nodejs with the correct version of each SO, the correct version of parsoid for each SO and nodejs and mediawiki, and finally the correct version os visual Editor Extension.

Whatamidoing (WMF) (talkcontribs)

I'm sorry that it's so frustrating. As I said, I don't know how to do it myself. The WMF can't provide support to other people's wikis. Perhaps it'd be possible to find a consultant, or advice from a user group? (talkcontribs)

What we need is a step by step install Wiki+VisualEditor/Parsoid for CentOS7 and Ubuntu. I am too spending a LOT of time trying to get it to work.

Nowhere does it say how and where to download the appropriate versions of MediaWiki/Parsoid (how is the pairing working, any list of versions that work?)

Whatamidoing (WMF) (talkcontribs)

If you figure it out, then please feel free to start a doc page here.

I've heard that the versions of MediaWiki, VisualEditor, and Parsoid must all match (so if you do 1.27 for one, then you have to do 1.27 for all three of them).

Reply to "Can't run VisualEditor y my wiki"
Fidoman (talkcontribs)

Hello, did anybody succefully integrate VisualEditor with any video player plugin? I tried EmbedVideo, but it nor show thumbnail in editor, nor allow to enter resolution for video, though allows to insert mediafile into page.

Jdforrester (WMF) (talkcontribs)

Not yet, sorry. The one used in Wikimedia production is Extension:TimedMediaHandler, which we will work on ahead of others' working I imagine, but it doesn't integrate neatly yet.

Reply to "EmbedVideo"

Question about the "Single Edit Tab" feature

Guycn2 (talkcontribs)

Hello. When will the "Single Edit Tab" feature come to Wikibookses ?

Elitre (WMF) (talkcontribs)

I don't think there's anything planned ATM. Are you aware of a specific Wikibooks which really wants it?

Guycn2 (talkcontribs)

What a shame... I would personally want it on the Hebrew Wikibooks, but I'm not sure the community supports it...

Is there any plan to enable this feature on Wikipedias? (I mean on all Wikipedias, not just ones that ask for it particularly like the Hungarian Wikipedia)

Whatamidoing (WMF) (talkcontribs)

The team is re-thinking the system for this feature. I don't know when they'll update it next, but they're not currently planning to deploy it to any place that already has the visual editor for all users until they've decided whether it needs to be refined.

Reply to "Question about the "Single Edit Tab" feature"
Noé (talkcontribs)


Sorry if it is not the right place for this suggestion. During Wikimania 2016 we discussed about links between Wiktionary and Wikisource, and we reach a solution to tide them up. Well, in VisualEditor it is already possible to include media from Commons. So, may it be possible to include similarly Sentences from Wikiquote or Wikisource? I mean: you click on Insert citations put a word and tick languages and it request x project to give sentences that include the requested word.

It may be of some use for Wikipedia, but very useful for Wiktionary as definition came with attestation. If this tool can also format the references, it may permit to insert a sentence that contain a specific word in less than a second! Such an improvement!

I have no idea on how difficult it can be to develop that, but there is a need for it, and we can organize a vote to prove that if needed. I'll be happy to explain more precisely if my English is too cryptic, so feel free to react in any way.

Whatamidoing (WMF) (talkcontribs)

Noé, thanks for this note. I think I understand your goal. There may be more than one way to get example sentences.

I'm going to pass this idea along to User:Trizek (WMF). He knows more about Wiktionary than I do. I think he will also be interested in your idea. So, please feel free to post in French.

Trizek (WMF) (talkcontribs)

I know about Wiktionary thanks to Noé. :)

Insert Images is easy: you have one image and identified meta-data attached to (good job, dear Commonists).

If you want to pick a precise citation, that's not the case for Wiktionary or Wikisource. I think it will be much more complicated.

This said, please post your idea in details in French. Automated translation is pretty accurate.

Noé (talkcontribs)

L'idée en français alors. Actuellement, en cliquant sur "Insérer" dans l’Éditeur Visuel, il apparaît une liste d'options dont "Média" qui va rechercher sur Commons. La façon dont je vois les choses serait d'ajouter une option "Citations" qui ouvre une fenêtre de requête permettant d'interroger Wikisource et Wikinews, dans les versions linguistiques choisies. La requête sortirait des phrases contenant le mot cible, délimitées par des points (détectés automatiquement), et mettant en gras le mot clé. Il suffirait ensuite de cocher les citations adéquates puis de valider pour qu'elles s'insèrent avec la source bien formatée (modèle source sur le Wiktionnaire francophone). De cette manière, il serait plus simple de citer des projets libres que d'aller piocher sur Google Books...ce qui est la pratique actuelle. Je ne sais pas comment des développeurs pourraient faire ça, mais ça serait génial :)

Elitre (WMF) (talkcontribs)

Wow, I never thought about this, and yet it makes so much sense. I put it at, which can be improved if I misunderstood something. I think we should also ask the Search guys. Looks like a clever idea though.

Trizek (WMF) (talkcontribs)

Comme je disais en anglais, cela est facile à faire pour les images, car celles-ci sont uniques : une page = une image. Les méta-données qui y sont attachées sont facilement trouvables.

Pour des contenus textuels, c'est bien moins évident : ce sont des blocs de texte, dans lesquels il faut trouver telle ou telle phrase en fonction d'un contexte ou d'un auteur... C'est très difficile à mettre en place.

Je vais faire remonter l'idée. Aurais-tu quelques exemples concrets ?

Noé (talkcontribs)

Je réalise bien la différence, et entends que ça puisse être très difficile, mais parfois, il suffit de bien exprimer les problèmes les plus complexes pour que des solutions émergent. Et puis, il se trouvera peut-être quelqu'un qui piochera ce sujet lors d'un prochain hackathon, ça n'a pas forcément vocation a être développé par des employés de la Fondation. Il y a une fonction un peu comme ça dans Linguee, un outil en ligne que j'aime bien. Ça marche plus ou moins bien, mais ça fait le taf en général. Par exemple :

Sorry to write in French. Trizek wrote he considers this operation very complex and I assure I got it. I imagine describing properly a problem may help to solve it at some point. And maybe there will be someone that may like this challenge at the next Hackathon. As an example of this kind of feature, I can mention Linguee:

Whatamidoing (WMF) (talkcontribs)

You do not need to apologize for writing in French here. is not an English-only project. You are welcome to post in French.

Trizek (WMF) (talkcontribs)

(Mes collègues ont accès aux outils de traduction automatique qui transcrivent très bien le français :))

Linguee est un sacré projet, que j'utilise tous les jours (je l'avoue). J'ai du mal à voir le lien entre Linguee et l'idée proposée : Linguee cherche des relations entre phrases ayant le même sens. Tu souhaites avoir un outil de citations qui va chercher des éléments suivant un conteste général. Or, il y a une différence entre chercher la traduction de « Napoléon est mort à Sainte-Hélène » et chercher les citations qui se rapportent à son décès.

Peux-tu préciser ton exemple ?

Elitre (WMF) (talkcontribs)

I think he's just trying to show how he imagines the feature to be like, a search bar + snippets of results that you can choose from. I believe this is eventually about interwiki search, which is directly related to Goal 2, Objective 2 for Discovery this year: .

Noé (talkcontribs)

En fait, ce qui intéresse le Wiktionnaire, c'est d'avoir des attestations avec une orthographe identique. Chaque variation orthographique a droit à son entrée, et la requête serait donc uniquement sur une chaîne de caractère, sans prise en compte de la sémantique. C'est à dire que l'on ne recherche pas la définition de "pomme" mais seulement des phrases dans lesquelles il y aurait le mot "pomme" (et nous n'aurions pas "pommier" car nous n'en voulons pas). Est-ce que tu voyais autre chose ?

Trizek (WMF) (talkcontribs)

Je ne voyais pas grand chose :)

Elitre has raised an interesting possibility to work on that, with the Discovery team. @CKoerner (WMF) may be interested by that idea of having a way to quote citations from somewhere (search occurencies of "apple" to illustrate the Wiktionary with examples of sentences where "apple" is used).

VIGNERON (talkcontribs)


Intéressé et concerné, je me permet de laisser un message.

Du point de vue technique, il me semble que cela se découpe ainsi :

  • recherche du mot dans Wikisource
  • découpage de la phrase (ou la partie de la phrase)
  • insertion dans le Wiktionnaire
  • insertion des données bibliographiques

Le premier point me semble trivial.

Le second est déjà un peu plus compliqué (comment savoir où couper ? quelle section de la phrase est pertinente et fait sens ?) mais cela ne me semble pas insurmontable (Linguee le fait bien : pas de problèmes pour les phrases courtes qui sont les plus courantes).

Le troisième point dépend de ce que l'on attend ; une solution simple serait de faire un copier-coller, non ? Une véritable transclusion serait bien trop compliqué (nécessiterait de faire comme des Labeled Section Transclusion) et ne correspond pas au besoin.

J'avoue mon ignorance sur la complexité technique précise du quatrième point ; lesdites informations bibliographiques sont en cours de migration vers Wikidata mais un chantier délicat et un peu complexe (difficile à complètement automatiser, on a passé 2 jours à réfléchir à la question pendant Wikimania ; en gros, on a conclu qu'il valait mieux le faire doucement mais surement).

Noé (talkcontribs)


Merci Vigneron, et d'accord avec toi dans l'ensemble. Copier-coller une phrase est suffisant, pas besoin de transclusion. Idéalement, le Wiktionnaire francophone met en italique toute la phrase et en gras le mot vedette, mais chaque langue a un choix de mise en forme différent et il faudrait envisager des aménagements locaux. Pour les sources, l'ordre est éventuellement différent selon les langues, et ce ne sera peut-être pas si trivial. Dans fr.wikt nous les mettons dans un modèle source.

Trizek (WMF) (talkcontribs)

Donc avoir un moyen de mettre en avant le mot (surbrillance) dans un ensemble de phrases serait l'idée ?

Noé (talkcontribs)

Oui. Je n'avais pas vu la question avant, désolé. En réfléchissant à cette idée à nouveau, j'ai réalisé qu'il s'agissait simplement d'interroger une base textuelle de la même manière qu'avec le moteur de recherche standard, avec les différences pointées par Vigneron. Je mentionnais Linguee pour l'aspect visuel, la mise en avant de ce que l'on recherche. Pour les sources, j'imagine que ça ne sera pas forcément évident de récupérer le numéro de page.

Andrew Sheedy (talkcontribs)

Ce que l'on voudrait, c'est de pouvoir chercher dans Wikidata et Wikisource les occurrences des mots qu'on veut trouver, et puis de selectionner les phrases pertinentes (qui contiennent le mot cible) pour les incorporer dans l'entrée sur Wiktionnaire/Wiktionary. Dans l'entrée, on aimerait que le mot vedette soit en gras et que les données bibliographiques soient incluses dans la bonne ordre. Si c'est possible, il serait encore mieux d'insérer toutes ces données ainsi que le texte exemplaire dans une modèle, mais il suffirait peut-être de les copier-coller à peu près comme l'exemple suivant :

date de publication=date

auteur=nom de famille, prénom


lien vers la source=lien

ISBN=ISBN (s'il y en a un)

(d'autres renseignements pertinents)

texte=texte avec le mot vedette en gras

Désolé d'avoir écrit en français même si ma langue maternelle est l'anglais, mais je n'ai que rarement l'opportunité de l'écrire et j'aime pratiquer quand je peux. :) J'espère que tout est compréhensible. Sinon, je peux m'expliquer en anglais....

Et Noé, c'est une idée fantastique, en passant. :)

Elitre (WMF) (talkcontribs)

m:User:CKoerner (WMF)/Interwiki Searches is relevant IMHO.

Reply to "Insert citations"
Waanders (talkcontribs)

How exactly does search for images work for dialog at Insert > Media?

I found out it only searches for whole words. But beyond that, sometimes images are not found while they exist in the wiki. For example, a document called "File:Test ONE two three.pdf", will be found if searching for "test", "one" or "two", but not if searching for "three". Where it will be found if searching for "three.pdf".

Jdforrester (WMF) (talkcontribs)

It uses the search engine for that wiki; it should be identical to the results of typing into the search box on Special:Search. For Wikimedia wikis, this means CirrusSearch.

Reply to "Incomplete search images insert media"

Why isn't the VE running on talk pages anywhere?

Summary last edited by Sänger 21:00, 13 July 2016 4 months ago

There won't be any real answer at any time.

Sänger (talkcontribs)

Instead of the normal editing possibilities, on talk pages we are restricted to either only use the wikitext editor, or to this Flow environment, with its massive restrictions on next to everything. Why is the VE not enabled anywhere on talk pages?

Jdforrester (WMF) (talkcontribs)

Hi there. This question comes up a bunch, and has been answered at length a few times before, but I can't find any of those right now, sorry.

The short answer is that VE is a content editor, and is designed to make writing (long-form) content. In dozens of ways, we've optimised it around writing articles for Wikipedia, Wikivoyage and other wikis. The use cases of a semi-free-form-but-with-odd-rules discussion box are fundamentally incompatible. Providing VE for talk pages would mean making massive compromises both on being a good content editor and on being a good discussion editor. It's an anti-pattern, and it's not going to happen.

I know you have a personal animus with Flow, and that's unfortunate, but it's the option available if you think talk pages don't work well (with which I would agree).

Sänger (talkcontribs)

It's just about an editor, the difference between a plain text editor and a wysiwyg editor. There shouldn't be any big difference between editing a text on either the front or the back side of any page. A talk page is as well nothing much different to any other content page, only the content is a bit different.

It's like the difference between old fashioned WordPerfect and the wysiwyg version of the same program. Some prefer the classic mode, some the ve, but the resulting page is just the same.

Sänger (talkcontribs)

Why was this definitely not solved question closed? Your answer was just a straw man, not a real one. It's everything but closed.

Jdforrester (WMF) (talkcontribs)

Sorry, I didn't see a question in your response, just implicit accusations of bad faith and incompetence. :-) If you could re-write one that'd be great, otherwise there's nothing more to say.

Sänger (talkcontribs)

Why isn't the VE running on talk pages?

VE is a text editor, and thus should be fully capable of editing on any page, at least simple talk pages.

Jdforrester (WMF) (talkcontribs)
VE is a text editor,

As I explained, this is not true.

Sänger (talkcontribs)

To just quote the first sentence from the other side:
The VisualEditor project aims to create a reliable rich-text editor for MediaWiki.
So why do I have the impression, that either the other side is plain wrong or your "argument" is just a straw man?

Whatamidoing (WMF) (talkcontribs)

The visual editor cannot (abuse HTML definition list formatting to) fake the indentation of paragraphs. Therefore, you are likely to find using it in a talk-page discussion to be frustrating at this time.

Sänger (talkcontribs)

...yet. An editor that's capable of editing tables, using templates, setting references etc.pp. is incapable of abusing colons for indentation? Should I really believe this?

Why do I think of a nice idea to push the software pet project that's not as much liked by the community as by the WMFers?

Whatamidoing (WMF) (talkcontribs)

I think you may have to wait until phab:T6521 is resolved.

BTW, there are a few wikis that have the visual editor enabled in the Project: namespace, and which also have some discussions in that namespace (e.g., ), and we hear complaints about problems on those pages. I don't think that it would be a good idea to expand the use of the visual editor on such pages at this time.

Sänger (talkcontribs)

You insist without any real merit, that a wikipage is not the same as a wikipage. In principle all wikipages behave in absolutely the same manner, they were edited with exactly the same editor up to some time ago, when you a) tried to get so-called structured discussions, first with Liquid Threads, something that failed, now with a bit different layout system Flow, something that as well is stuck in limbo. But if you discount these, the article page uses the same syntax as the talk page, the user page uses exactly the same syntax as the talk page, with one of two available editors the can be edited in exactly the same way as everything else in the wikiverse. With the other one, the VE, you claim that these exactly same pages are magically somehow different, and one of them can't be edited in a wysiwyg-way.

BTW: Using colons to indent, instead of some software hack created by those many devs paid by content creators and talk page users, is frustrating as well, but you choose to ignore this for quite some time and preferred to create shiny new bling instead of boring maintenance. That's at the core of this, not the proclaimed, but not existing, differences between those pages. And the phab is just a strawman as well, if you mange to get templates programmed somehow, the indentation problem should be non-existing. Unles you deliberately choose not to do something about it, to keep this strawman alive.

Reply to "Why isn't the VE running on talk pages anywhere?"

Disabling cache causing VE to not work

Divinorum ari (talkcontribs)

I have disabled Memcache and set CACHE_NONE, VE is not able connect to Parsoid anymore. Re-enabling cache is solving the problem.

Ho to solve that please ? Any advice will help, thank you

Reply to "Disabling cache causing VE to not work"