Topic on Talk:VisualEditor

Visual Editor tab not displayed in new name space

3
Sokote zaman (talkcontribs)

Hello

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

please guide me

Thank you


#teb_tab

# 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"