Topic on Extension talk:WikiEditor

Diff styles not loaded? (MW 1.27.1, REL1_27 branch of WikiEditor)

3
Summary by FreedomFighterSparrow

User:TheDJ backported the fix to the REL1_27 branch.

FreedomFighterSparrow (talkcontribs)

I'm using WikiEditor with the "wikieditor-preview" option on. I just noticed that it seems like mediawiki.action.history.diff isn't loaded at all when I click the "Changes" tab - it shows a diff, with strikeouts for deletions, etc., but no colors (which come from the above module, apparently).

I see no errors on the console (or in the network resources tab), and it works just fine if I click the bottom diff button (which shows a diff view below the textarea), as well as in the regular changes view (action=history).

In jquery.wikiEditor.preview.js there's an API call to diff, which I can see actually happens; but the style module isn't loaded.

This might be happening since I upgraded to MW 1.27 (from MW 1.26), and I just haven't noticed so far...

Any ideas what the issue could be, or how I can further debug it?

FreedomFighterSparrow (talkcontribs)

Never mind, a few seconds after posting this I finally found Phab:T142845; it's a shame this wasn't backported to the REL1_27 branch of WikiEditor. I've now requested it would be.

As a workaround, you can set

$wgDefaultUserOptions['uselivepreview'] = true;

, because it loads module 'mediawiki.action.edit.preview', which depends on the needed 'mediawiki.action.history.diff'.

FreedomFighterSparrow (talkcontribs)

Please note that User:TheDJ indeed backported the fix to the REL1_27 branch. Thank you :-)

Users can pull the changes or redownload the extension from the extension distributor.