Jump to navigation Jump to search

About this board

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

Visual Editor tab not displayed in new name space

Sokote zaman (talkcontribs)


I created a new namespace, but the visual editor tab is not displayed

please guide me

Thank you


# 3824

define("NS_TEBTAB", 3824);

define("NS_TEBTAB_TALK", 3825);

// Add namespaces.

$wgExtraNamespaces[NS_TEBTAB] = "teb_tab";

$wgExtraNamespaces[NS_TEBTAB_TALK] = "teb_tab_talk";

// Additional flow for other NameSpaces

$wgNamespaceContentModels[NS_TEBTAB_TALK] = 'flow-board';

// Additional Subpages

$wgNamespacesWithSubpages[NS_TEBTAB] = true;

$wgVisualEditorAvailableNamespaces = [ "Tebtab" => true ];

Jdforrester (WMF) (talkcontribs)

The $wgVisualEditorAvailableNamespaces array is indexed on the namespace ID, not the string name for it in a particular language. You want $wgVisualEditorAvailableNamespaces = [ NS_TEBTAB => true ]; instead.

Sokote zaman (talkcontribs)

Thank you for your response

Thank you it was solved

To add several custom spaces, please provide a sample code

Thanks@Jdforrester (WMF)

Reply to "Visual Editor tab not displayed in new name space"

PDF link in VE shown as thumb, in wiki as text...

2 (talkcontribs)


when I add a Link to PDF-File in VE using "add / pics" (einfügen, Bilder und Medien)

while beeing inside ve its shown nice with icon-thumbnail and I can change the Style (with border or without...):

but as soon as I save and leave ve, it is shown as plain text link:

returning to VE its nice again...

when I search for showing PDF with Icon, i could only find the hint for using Templates...

But I dont understand, why ve shows it correctly and wiki not.

Is there any chance to set it, that wiki displays it like its displayed in ve?

thank you very much

Whatamidoing (WMF) (talkcontribs)

Do you know how to insert it correctly (the appearance you want) in the old wikitext editor? If so, we could compare the wikitext for what works vs what the visual editor is doing, and figure out how to make them both do the right thing.

Reply to "PDF link in VE shown as thumb, in wiki as text..."

Error contacting the Parsoid/RESTBase server: (curl error: 7) Couldn't connect to server

Sccotty (talkcontribs)

Getting this error when trying to use the visual editor. Can create a new page fine but cannot save them (same error).

MediaWiki 1.35.1
PHP 7.3.25 (apache2handler)
MariaDB 10.3.27-MariaDB
ICU 63.1

Any help is appreciated.

2003:C0:4F1B:CB40:78F1:237A:6989:B7B9 (talkcontribs)

Ich habe das gleiche Problem.

Sccotty (talkcontribs)

This was solved by adding https: to our $wgServer in LocalSettings.php

Ablum010777 (talkcontribs)

I have this problem, too, and I have https: in my $wgServer. However, in my case, we host Wikis via an internal and an external URL. The problem shows up only over the external URL. How do I configure this in LocalSettings.php and Apache?

Reply to "Error contacting the Parsoid/RESTBase server: (curl error: 7) Couldn't connect to server"
Sławobóg (talkcontribs)

Could you add two apostrophes to often used special character list: ‘ (U+2018) and ’ (U+2019)? It would be nice if, when clicked, the selected text would be inside these apostrophes. These apostrophes are often used in dictionaries (in many languages) to expain the meaning of a word / phrase.

Whatamidoing (WMF) (talkcontribs)
Sławobóg (talkcontribs)

But it should be a thing for all Wikipedias. It is used by English dictionaries too.

Whatamidoing (WMF) (talkcontribs)
Reply to "Apostrophes"
Summary by Pandakekok9

Standalone demo link changed to working one

Pandakekok9 (talkcontribs)
Jdforrester (WMF) (talkcontribs)

How to show both edit tabs for all users?

3 (talkcontribs)

I want my MediaWiki to appear like this:

Instead of this:

Reason: Since the MediaWiki 1.35 update, which defaults to VisualEditor, I have observed in Special:RecentChanges that many edits are tagged with Visual Editor: Switched, meaning they opened VE and switched to source editing afterwards.

What do I need to change in LocalSettings.php for both tabs to appear? (talkcontribs)
Whatamidoing (WMF) (talkcontribs)

I think that it depends upon whether you have the VisualEditor/Single edit tab system. Some WMF wikis do, and some don't, and I have no idea what's the default for third-party MediaWiki installations.

Reply to "How to show both edit tabs for all users?"

Bug in media settings: Image size toggles back to default on invalid value without letting me finish type the number.

Summary by Whatamidoing (WMF) (talkcontribs)

Steps to reproduce:

  • Insert image in source editor
  • Switch to VisualEditor. Image should be visible.
  • Click on the image
  • A tooltip appears. Click its Edit button.
  • There are two tabs on the top: General and Advanced. Click on Advanced.
  • Scroll down to Image size.
  • There are two options: Default and Custom. Click the latter.
  • Double-click the first number to highlight it
  • Try entering a new number

Upon the last step, it switched back to Default again, apparently because the one-digit width pixel number is initially too low. But I intended to type in a three-digit width.

Not sure if I am the only one to experience this, but I posted it here just in case, so it can be looked into.

Reply to "Bug in media settings: Image size toggles back to default on invalid value without letting me finish type the number."

Problems with VisualEditor compatibility in mobile devices when I change to desktop mode from the mobile view

Rodney Araujo (talkcontribs)

Hello, in mobile devices, when I change to desktop mode in a browser, at the time of editing with VisualEditor, it shows a notice that says: You are using a browser that is unofficially compatible with this editor. Could you solve this problem? Thanks.

Whatamidoing (WMF) (talkcontribs)

The desktop software is not designed to work on a mobile device. It may behave strangely or crash unexpectedly. It is appropriate to warn editors about this risk.

Rodney Araujo (talkcontribs)

I want desktop software to be designed for mobile devices too, especially tablets, because tablets are close to being computers.

Reply to "Problems with VisualEditor compatibility in mobile devices when I change to desktop mode from the mobile view" (talkcontribs)

Hello. When I made the edit on Help:Export, VisualEditor happened to remove much text that I did not actually remove while editing.

I did not realize it after saving. (talkcontribs)

Apparently, the same happened to the editor on that page prior to me, removing a similar amount of bytes from the page.

I suggest making the source editor default again to prevent such glitches that appear like vandalism. (talkcontribs)

Apparently, the same bug also happened to editors on Extension:MobileFrontend.

The edit summaries suggest good-faith edits, but much text has been removed in edits tagged as visual edit.

Shirayuki (talkcontribs)

Use the source editor instead. (talkcontribs)

Yes, I will. Thanks.

But expectedly, people tend to use the default, which on this site is the Visual Editor that apparently is unstable and causes good-faith users to unintentionally vandalize pages.

I suggest the developers to look into it.

Whatamidoing (WMF) (talkcontribs)

I assume that this is due to VisualEditor's lack of support for Extension:Translate.

Shirayuki, do you think that page needs an Edit notice or other warning about it?

Reply to "Blanking bug"

Some pages really cannot be edit in VisualEditor?

AlexeySlw (talkcontribs)

I use MediaWiki 1.31 and Parsoid 0.9.0.

I restored Russian Wikipedia from dump and have an error opening some pages in VisualEditor. For example, Россия/Russia, США/USA, Япония/Japan and other countries.

It may be my mistake, but these are the same pages that "protected" on Wikipedia (of course, I didn't check all the pages on Wikipedia, just those I interested in).

So, the question is: did I do something wrong or some pages really cannot be edit in VisualEditor?

Whatamidoing (WMF) (talkcontribs)

I can open w:ru:Россия in the visual editor. It's a large page (534,630 bytes, at the moment). Do you have problems with large pages?

Reply to "Some pages really cannot be edit in VisualEditor?"