Page MenuHomePhabricator

JS/CSS pages in Mediawiki namespace should be previewed like User JS/CSS
Open, LowPublicFeature

Description

css/js in mediawiki namespace should use the same way for preview than the user css/js.

It is very helpful, when see the result of editing a css/js page in the preview, like the user css/js it have yet. Thanks.


Version: unspecified
Severity: enhancement

Details

Reference
bz18227

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:35 PM
bzimport set Reference to bz18227.
bzimport added a subscriber: Unknown Object (MLST).

The method isCssOrJsPage in Title is for this case, but it seems, the method is not used yet.

wikimedia wrote:

Do you know when was it fixed and where / in what version? It would just be interesting.

reopen, after a deeper look, it is not fixed. It has somethings changed, like hints for the user and wrapping the code in a pre and show it on preview, but the js/css is not preloaded like on the user js/css in a inline script/style tag. That makes it hard to find js syntax errors on preview.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:01 AM
Aklapper removed a subscriber: wikibugs-l-list.