Page MenuHomeMiraheze

LocalSettings Configurations
Open, NormalPublic

Description

Can you add this to LocalSettings.php?

$EnableVisualSectionEditing = 'mobile';
$wgGalleryOptions = [
    'imagesPerRow' => 0, 
    'imageWidth' => 120, 
    'imageHeight' => 120,
    'captionLength' => true,
    'showBytes' => true, 
    'showDimensions' => true, 
    'mode' => 'packed',
  ];
  $wgVisualEditorAvailableNamespaces = [
       0 => true,
       2 => true,
       6 => true,
       14 => true,
       420 => true,
       "_merge_strategy" => "array_plus"
];
$wgHiddenPrefs[] = 'flow-visualeditor';

also, can you remove this for just one second?

$wgHiddenPrefs[] = 'usebetatoolbar';

I need to just test something, then want it disabled again after I do.

Event Timeline

@Carp_Universum wgGalleryOptions done, wgHiddenPrefs done (do you still need WikiEditor completely disabled, we can do that as well). wgVisualEditorAvailableNamespaces is done in each individual namespace with Special:ManageWiki/namespaces.

As for "EnableVisualSectionEditing" you say "mobile" but it doesn't look to me like this setting allows more than a true/false as it's defined as "Whether to allow users to enable the section editing" which is a true/false check.

Please also note that you don't always need to create a new task you can just request these things in one place since it's all similar.

@Carp_Universum wgGalleryOptions done, wgHiddenPrefs done (do you still need WikiEditor completely disabled, we can do that as well). wgVisualEditorAvailableNamespaces is done in each individual namespace with Special:ManageWiki/namespaces.

As for "EnableVisualSectionEditing" you say "mobile" but it doesn't look to me like this setting allows more than a true/false as it's defined as "Whether to allow users to enable the section editing" which is a true/false check.

Please also note that you don't always need to create a new task you can just request these things in one place since it's all similar.

Please also note that you don't always need to create a new task you can just request these things in one place since it's all similar.

Sorry about that.

As for "EnableVisualSectionEditing" you say "mobile" but it doesn't look to me like this setting allows more than a true/false as it's defined as "Whether to allow users to enable the section editing" which is a true/false check.

I did extensive research and came up with it is an option
There is one usage example.
https://universalomega.fandom.com/wiki/Universal_Omega_Wiki
Plus here is the source:
https://doc.wikimedia.org/VisualEditor/master/source/ve.init.mw.ArticleTargetLoader.html

   // T218851: Section editing A/B test
  	if ( conf.enableVisualSectionEditing === 'mobile-ab' ) {
		if ( !mw.user.isAnon() && mw.user.getId() % 2 ) {
			conf.enableVisualSectionEditing = 'mobile';
		} else {
			conf.enableVisualSectionEditing = false;
		}
	  }

Sounds useful to me.

(do you still need WikiEditor completely disabled, we can do that as well)

Yes, I would like that, however what I am trying to do, is make visual editor 2017 wikitext editor work on code pages, I never use the code editor itself anyways, and want just a single editor, but will that do the trick or does something else need done?

Tried changing VisualSectionEditing to mobile, please let me know if it worked

Tried changing VisualSectionEditing to mobile, please let me know if it worked

It worked! Thanks!

@Carp_Universum Okay so I guess I should disable WikiEditor on your wiki now?

@Carp_Universum Okay so I guess I should disable WikiEditor on your wiki now?

Hold off on that for a little bit actually.
When I said "It worked", I realized I was editing a MediaWIki page, but forgot the .js at then end, so in fact that did not work. I will continue to find a way to do it. But until I find a way to make that work, WikiEditor shouldn't be disabled.

@Reception123
I hope I am correct in this config I am requesting, took some research on meta and through configs to find this.
Can you add these? I believe they are the correct ones.

$wgVisualEditorFullRestbaseURL = 'https://dcmultiverse.miraheze.org/dcmultiverse.miraheze.org/';
$wgVisualEditorRestbaseURL = 'https://dcmultiverse.miraheze.org/api/rest_v1/page/html/';

@Carp_Universum Okay so I guess I should disable WikiEditor on your wiki now?

@Reception123
Also, do that, only if it can be undone, I want to see if doing that will make the visual editor wikitext mode always used instead, so we have just the one editor.

Paladox added a subscriber: Paladox.Tue, Jul 14, 14:11

@Reception123
I hope I am correct in this config I am requesting, took some research on meta and through configs to find this.
Can you add these? I believe they are the correct ones.

$wgVisualEditorFullRestbaseURL = 'https://dcmultiverse.miraheze.org/dcmultiverse.miraheze.org/';
$wgVisualEditorRestbaseURL = 'https://dcmultiverse.miraheze.org/api/rest_v1/page/html/';

We don't use restbase for VisualEditor, it requires parsoid going through Restbase. Instead VisualEditor is directly connected to parsoid.

Not sure why you need restbase for visualeditor?

@Reception123
I hope I am correct in this config I am requesting, took some research on meta and through configs to find this.
Can you add these? I believe they are the correct ones.

$wgVisualEditorFullRestbaseURL = 'https://dcmultiverse.miraheze.org/dcmultiverse.miraheze.org/';
$wgVisualEditorRestbaseURL = 'https://dcmultiverse.miraheze.org/api/rest_v1/page/html/';

We don't use restbase for VisualEditor, it requires parsoid going through Restbase. Instead VisualEditor is directly connected to parsoid.

Not sure why you need restbase for visualeditor?

I understand. I was going off what I was reading about a glitch in VE I have where infobox values don't display in edit previews. Any ideas there then?