Version: unspecified
Severity: normal
Description
Description
Details
Details
- Reference
- bz41655
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | None | T41272 Bugs in "Live preview" feature (tracking) | |||
Resolved | None | T43655 User script preview do not work if "tog-uselivepreview" is enabled |
Event Timeline
Comment Actions
ops.. sorry for the empty description.
- Go to
https://en.wikipedia.org/wiki/Special:Preferences?uselang=en#mw-prefsection-editing
and make sure "Use live preview (requires JavaScript) (experimental)" is DISABLED.
- Go to
https://en.wikipedia.org/wiki/Special:MyPage/common.js?action=edit
and type "alert( 'works' );"
- Click on "Show preview"
- The message appears as expected
- Now go back to your preferences and DISABLE "Use live preview (requires JavaScript) (experimental)".
- Type "alert( 'works' );" on your common.js again
- Hit "Show preview"
- Nothing happens
(well, there will be an API request and the following will be added to the page, but the code is not executed:
<pre class="mw-code mw-js" dir="ltr">console.log( 'works' );</pre>
)
Comment Actions
(In reply to comment #1)
- Now go back to your preferences and DISABLE ...
I mean, ENABLE.