Jump to navigation Jump to search

About this board

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

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

Summary last edited by Sänger 21:00, 13 July 2016 3 years 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.

MZMcBride (talkcontribs)

Hmmm. Does "support VisualEditor on talk pages" have an associated Phabricator Maniphest task?

I tend to agree with Sänger, though I'd perhaps phrase it this way: VisualEditor should work with all regular (non-Special) wiki pages. This includes user pages, talk pages, portal pages, pages in the MediaWiki namespace, etc. It's an extensible editor that we've already installed and committed to supporting. We've seen time and again that the arbitrary distinction put up between VisualEditor support by namespace is confusing and annoying to users.

I think there are talks about unifying the wikitext and VisualEditor editors. Eliminating or masking the difference between the two or more editors that we have may somewhat neatly resolve this issue.

Whatamidoing (WMF) (talkcontribs)

To see the result of these "talks", go to Special:Preferences#mw-prefsection-betafeatures and enable the "new wikitext mode" beta feature.

NB that it's not really about "unifying the [old] wikitext and VisualEditor editors". This will not merge the code for EditPage.php or Extension:WikiEditor with Extension:VisualEditor. The only thing that's being unified is the user experience, i.e., the user gets VisualEditor's black-and-white toolbar and VisualEditor's built-in tools (such as pasting a URL to a Wikipedia page and getting an internal wikilink instead of an external link) everywhere. There will still not be any visual mode on the talk pages.

Sänger (talkcontribs)

And there is still no believable reason given, why a wikipage is not a wikipage. It's just futile justification lyricism for not wanting to do anything against Flow.

Sänger (talkcontribs)

Short update:

In the current Community Tech survey the VE is used in discussions, so the whole "argument" with the non-suitability was proven as a straw-man by the WMF on one of its own pages, yet they still insist that a wikipage is not a wikipage.

See this archived proposal as an example (and as another attempt to stifle any discussion about VE on talkpages for pure political reasons). Grüße vom Sänger ♫(Reden) 12:26, 3 December 2017 (UTC)

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

Cannot preview templates in Visual Editor

Chowpakhin (talkcontribs)

I have installed the Visual Editor and TemplateData as well as TemplateWizard; however on my wiki the Visual Editor does not show the preview of templates used in all articles. How to solve the problem? Thanks!


Reply to "Cannot preview templates in Visual Editor"

When other extension uses curl_exec, visualeditor throws "Unknown error" when editing article

Kulttuuri (talkcontribs)

Using MediaWiki 1.29.1. I am using extension SlackNotifications. When editing an article, the extension SlackNotifications in the end runs curl_exec($curl_h) which then throws "Unknown error" on VisualEditor's UI. After commenting out the curl_exec($curl_h) in SlackNotifications extension, VisualEditor works fine.

Are there known issues when other extension uses curl and VisualEditor? This is the full code that SlackNotifications extension uses for full curl init and send:

$curl_h = curl_init();

curl_setopt($curl_h, CURLOPT_URL, $wgSlackIncomingWebhookUrl);

curl_setopt($curl_h, CURLOPT_POST, 1);

curl_setopt($curl_h, CURLOPT_POSTFIELDS, $post);

// I know this shouldn't be done, but because it wouldn't otherwise work because of SSL...

curl_setopt ($curl_h, CURLOPT_SSL_VERIFYHOST, 0);

curl_setopt ($curl_h, CURLOPT_SSL_VERIFYPEER, 0);

// Set proxy for the request if user had proxy URL set

if ($wgHTTPProxy) {

curl_setopt($curl_h, CURLOPT_PROXY, $wgHTTPProxy);

curl_setopt($curl_h, CURLOPT_RETURNTRANSFER, true);


// ... Aaand execute the curl script!



Oleolsenkjhølkølk (talkcontribs)

I have the same issue with visualeditor giving an "unknown error" when saving edits, although the edits still get saved.

My mediawiki version is 1.29+

php 5.5

I am not using the extension slacknotification, but i do have the Echo extension installed, which i assume works in a similar way by providing notifications.

I found another post mentioning cURL needs to be installed, and got it enabled a half hour ago, although my problem still persists so i suspect i might need to do something more than just having the php extension cURL installed.

I am wondering if the "heroku fix" for parsoid might be contributing to the problem?

The solution for users on shared hosting, where you run parsoid from a heroku account.

Reply to "When other extension uses curl_exec, visualeditor throws "Unknown error" when editing article" (talkcontribs) (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) (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) (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).

Richbodo2 (talkcontribs)

I realize this is an ancient thread, but FWIW, having just installed mediawiki (about an hour including server setup, config, security, etc.) and parsoid (about a week and still slews of errors), for the record it's still non-trivial and I think anyone who can offer consulting services to people trying to set this up would make a mint.

Could be wrong, but it seems that in it's current state, Parsoid/VisualEditor setup really changes the equation as to which wiki people will use drastically and unexpectedly.

Reply to "Can't run VisualEditor y my wiki"

VisualEditor Stuck: Cannot read property 'toText' of null

Fatihbahceci (talkcontribs)

Here is code which stucked


var element,target=title.toText(),


Here is console error

load.php?debug=false…ersion=1c9irsr:1892 Uncaught TypeError: Cannot read property 'toText' of null at (load.php?debug=false…ersion=1c9irsr:1892) at (load.php?debug=false…ersion=1c9irsr:1893) at (load.php?debug=false…ersion=1c9irsr:1734) at (load.php?debug=false…ersion=1c9irsr:1890) at (load.php?debug=false…version=1c9irsr:965) at (load.php?debug=false…version=1c9irsr:971) at (load.php?debug=false…version=1c9irsr:974) at (load.php?debug=false…version=1c9irsr:974) at (load.php?debug=false…version=1c9irsr:974) at (load.php?debug=false…version=1c9irsr:974) @ load.php?debug=false…ersion=1c9irsr:1892 @ load.php?debug=false…ersion=1c9irsr:1893
ve.ui.MWLinkAction.static.getLinkAnnotation @ load.php?debug=false…ersion=1c9irsr:1734 @ load.php?debug=false…ersion=1c9irsr:1890

Reply to "VisualEditor Stuck: Cannot read property 'toText' of null"
Marlonke (talkcontribs)

I've followed the instructions as posted on VisualEditor/Skin requirement both the current version and the ones in the history tab. After adding the three div's with their IDs to my skin, the problem persists; nothing happens when I either call the page with the ?veaction=edit parameter, or when I create a button doing essentially the same. The only clue I have is the class 've-not-available' being added to the page after it's loaded.

The VisualEditor works fine on the stock skins I have: Vector and Chameleon.

I'm using the following versions:

VisualEditor 0.1.0 (9da5996) 16 aug 2016 15:40

MediaWiki 1.27.1 (a52d35d)

My HTML structure looks as followed (note the added mw-content-text and content divs)

<div class="grid-x  grid-margin-x">

               <div id="content">

                   <div class="cell">

                       <div  class="contentbody" >

                           <div id="mw-content-text">


                           if( !$this->atHome) {

                               // do not display the HTML tag if the header is empty

                                   if ( $this->skinData->data['title'] != '' ) {

                                       echo '<h1 id="emmskin-pageheader" class="page-title">';

                                       $this->skinData->html( 'title' );

                                       echo '</h1>';



                               //output the post-processed bodytext

                               echo $this->bodyTextHTML;







I've tried the following:

- Followed the instructions from the history pages of the Skin Requirements page, in which different names are used for the required divs

- Looking in the support section for someone with a similar problem

- Using the Vector/Chameleon skin HTML structure as inspiration, and trying to make everything in my skin look as close as possible.

I'm guessing this issue has something to do with either faulty configuration, or something lacking in my skin. I've found no clear way of debugging this so everything else I tried is largely trial-and-error to no avail.

Marlonke (talkcontribs)

It was indeed faulty configuration. Through debugging (breaklining some of the VE scripts) I managed to find out that the custom skin wasn't seen by VE as a 'supported skin'. I remedied this by adding '$wgVisualEditorSupportedSkins ['mySkin'];' to LocalSettings.php

Reply to "VE doesn't load on custom skin"
Hoefsldyla (talkcontribs)

Is there any way to stop VisualEditor from automatically adding the <nowiki> tags. For example if I want to type <div> Something </div> it changes it to <nowiki><div></nowiki>Something <nowiki></div></nowiki>

Jdforrester (WMF) (talkcontribs)

No. VisualEditor is a visual editor and is not appropriate for manually inserting raw HTML. For that, use the wikitext editing mode.

Reply to "Stop VE adding <nowiki> tags" (talkcontribs)

Hi, we have one very huge Page in one of our customers mediawiki. Editing this page will cause an alert windows after about 30 seconds witch says: "http". Not more. The Parsoid log says: ...started parsing... and then ...completed parsing in 37661 ms... so im guessing on a timeout problem. All other Pages load fast and fine. Is there a way to increase timeout? Thank you for every help and hint :-)

Ti infotrad (talkcontribs)
Reply to "Timeout in VisualEditor"

Is there anyway to make the "Add Templates" feature use "subst:"?

Summary by
Hoefsldyla (talkcontribs)

I am aware you can use `subst:Template` when searching and it will substitute. My problem is that I want TemplateData to still be able to function.

Hoefsldyla (talkcontribs)

To try get around this i created a template called "Template:Subst:TemplateName" which should work however the Template inserter upon clicking "Insert" just loads forever and never insert anything and you are not able to cancel

Reply to "Is there anyway to make the "Add Templates" feature use "subst:"?"

Enabling VE in Category Page? And enable VE always.

AmazingTrans (talkcontribs)

I'm wondering

  1. when i go to a category page, how can i enable visualeditor in that page?
  2. when i search for a page that doesn't exist, Create the page "Test" on this wiki! See also the search results found. By clicking the Test word, it always automatically select Create Source. Is there anyway I can have it select Visual Editor first?
AmazingTrans (talkcontribs)

I have tried the following, and the category doesn't seem to have VE Edit available, only sourceedit. I notice the NS_USER is not necessary, somehow VE is always shown there.

$wgVisualEditorNamespaces[] = array_merge($wgContentNamespaces,array( NS_USER, NS_CATEGORY));

I also tried this, and it didn't work.

$wgVisualEditorNamespaces[] = NS_CATEGORY;
Elitre (WMF) (talkcontribs)
AmazingTrans (talkcontribs)

VE is already working in Main namespace. Just not working in Talk, and Category namespace.

This is on my private wiki.

Whatamidoing (WMF) (talkcontribs)

I believe that the single edit tab feature will solve #2. (talkcontribs)

Since I've updated to MediaWiki 1.26.2 and the latest VisualEditor I also cannot enable VisualEditor for category pages. Before the Update (1.25.3) I could edit category pages. (talkcontribs)

I have the same issue. I would like to enable VisualEditor for Category pages. Also running 1.26.2.

Has anyone managed to enable this yet? (talkcontribs)

Add this to your LocalSettings.php

// Enable VisualEditor in Category Page

$wgVisualEditorAvailableNamespaces = array(


); (talkcontribs)

It can easily be done if you are using custom fields like pods etc. Just extend the current category and add visual editor as field

Reply to "Enabling VE in Category Page? And enable VE always."