The News/Journal/Book/Website options under Cite menu is missing now.
|mediawiki/core : wmf/1.25wmf14||JsonContent: Support non-object values as root structure|
|mediawiki/core : wmf/1.25wmf15||JsonContent: Support non-object values as root structure|
|mediawiki/core : master||JsonContent: Support non-object values as root structure|
- Mentioned In
- rMW3ccf2b06c37a: JsonContent: Support non-object values as root structure
rMW4df4e89b2010: JsonContent: Support non-object values as root structure
rMW7c340aed294a: JsonContent: Support non-object values as root structure
T86748: [Regression 1.25wmf14] HTML of JSON blocks (e.g. Schema pages) appears garbled
Still couldn't reproduce it, but I notice https://test2.wikipedia.org/wiki/MediaWiki:Visualeditor-cite-tool-definition.json is not showing anything - I wonder if that could be related.
@Ryasmeen, if you still get this issue, can you paste the output of mw.msg( 'visualeditor-cite-tool-definition.json' ) while VE is open here?
MediaWiki core's JsonContent handler only supports values of which the root structure is an object. This is why message visualeditor-specialcharinspector-characterlist-insert works fine, but message visualeditor-cite-tool-definition.json (which is an array) is broken.
While the validation for it having to be an object is new in, it never supported non-objects. This is why these MediaWiki pages didn't get the green/grey/white boxes rendering like Meta-Wiki Schema pages do. The fact that it allowed saving was a bug, and it rendering the page as wikitext instead of JSON visualisation was an undocumented fallback.
The VisualEditor MediaWiki extension is setting the content model for these two messages to JSON in VisualEditorHooks::onContentHandlerDefaultModelFor. Until MediaWiki core supports arrays, VE should remove the content model from those pages.