Commit graph

15 commits

Author SHA1 Message Date
Schnark 6602d905ee WikiEditor: Move HTML for dialogs to separate files
Move the HTML for the dialogs to separate template files,
using the template mechanism from core.
It is still possible to specify the HTML directly as before,
to be used in gadgets etc.

Change-Id: Ia7ad5aaa9cac429d1c9d706bdf6760e3eda358bc
2015-08-14 13:07:27 +00:00
This, that and the other 52d3e279a1 Replace hidesig module with a more robust implementation
Per T42972, the current hidesig implementation is broken, and only
hides the signature button in namespace 0 regardless of the value of
$wgContentNamespaces.

Seeing as the old implementation of hidesig was broken, I don't really
think backward compatibility with old configurations is a useful
concern here. In particular, hiding of the signature button is no longer
able to be configured in Special:Preferences (why such a trivial pref was
ever able to be exposed to users, I don't know).

Bug: T59727
Change-Id: I596fd435bc9be8c37da43177c1bea90ebff0b2fe
2015-08-05 13:59:00 +10:00
Kunal Mehta 592728483e Set license-name
Change-Id: I197ab648c3e1bdcac8b2dbc6f6ed985b7fd296c7
2015-07-22 22:06:55 -07:00
Schnark 27353c44b7 WikiEditor: Improve help section
* Internal links: Show simple example first
* References: Show use of unnamed references
* Discussion: Use --~~~~ for consistency with what the toolbar button inserts

Bug: T26128
Change-Id: I08de0ad416727447eccad914c2ade3a93e5a8ae2
2015-07-20 07:42:35 +00:00
Fomafix b365425f76 Replace deprecated 'jquery.mwExtension' by 'mediawiki.RegExp'
Replace $.escapeRE from 'jquery.mwExtension' by
mw.RegExp.escape from 'mediawiki.RegExp'.

This change requires MediaWiki 1.26+

Bug: T103993
Change-Id: I5fc19e1313fc6a06726981e0365cea6d00abb5f3
2015-06-26 15:10:20 +00:00
Derk-Jan Hartman e71796a9fd Remove reference to non-existing module
The ext.wikiEditor.init module was removed in 596a790d.

Change-Id: Iaed58f621bc02326630559a389cd1021408e418d
2015-06-24 23:16:32 +00:00
Fomafix edbee613fc Support fallback languages for icons
Use mw.language.getFallbackLanguageChain() to get the
fallback language chain. This chain currently always contains 'en'
as last element. Remove the last element to prevent a fallback to 'en'.

Reimplement autoIconOrOffset to correctly prefer sprite before icon.

Bug: T87247
Change-Id: I452dd45d20ea4dd542d63274b7aad0272e20ea12
2015-06-21 15:42:18 +00:00
Kunal Mehta 6080404f7d Set manifest_version in extension.json
Bug: T100745
Change-Id: I002981d1b755116757a4789fd2f8d198200ab7fc
2015-05-28 20:38:52 -07:00
Gilles Dubuc 849cbf2173 Explicitly define module position
Style modules currently added through addModuleStyles default
to being in the head ("top" position). This is an unhealthy default,
since only critical styles that are needed at pageload should be
in the head. In order to be able to switch the default to "bottom",
existing module positions have to be defined explicitly.

Bug: T97410
Change-Id: I8dbee3e4edf673341e7eb49f360e83e4dac54b17
2015-05-26 12:24:31 +02:00
Kunal Mehta 9de4e8cc00 Empty PHP entry point in favor of extension.json
Extension registration currently doesn't support merging 2d arrays
(T99257), so set it as an explicit global for now in a callback.

Change-Id: If7604a7ed8ec0f940c4a4d2988fcecc383303e1d
2015-05-19 20:48:10 -07:00
Kunal Mehta a5032b1336 Sync extension.json with WikiEditor.php
* 3cb4714e15 "Bump version to 0.5.0 to reflect massive updates in
last year"
* c9c189fd9d "Add dependency on mw.user"

Change-Id: Ic17a7f6a1bf97c955b79c6500ddbec38201aa650
2015-05-19 20:36:36 -07:00
Alex Monk 596a790d00 Try to unbreak WikiEditor modules
Some very weird issues going on involving multiple wikiEditor instances being
set up on the same textarea element. It's probably a race condition of some
sort and I'm hoping that restoring the modules like this will fix it.

Bug: T93384
Change-Id: I44c9c013993220ab709893d239614552d7b25d46
2015-04-07 19:51:58 +01:00
Timo Tijhof 8e78850a3a Don't force a separate http request for ext.wikiEditor.init
Follows-up 74da530f2, which introduced a separate HTTP request
on all pages just for the 665 bytes (compressed) of ext.wikiEditor.init.

Have it join the main load queue instead.

Change-Id: I9e0ce994e632c64f3c781f45ea44582c0a943c65
2015-03-31 20:24:06 +00:00
Alex Monk fb4f71a46b Move WikiEditor's special character data and messages out to core
Core part done in If9c5cdbe

Bug: T91608
Change-Id: Ifd0ed245ca9d1209b3dad5334f3fcfca428ceeec
2015-03-27 22:46:24 +00:00
Kunal Mehta 7466b7414d Add extension.json
Bug: T87993
Change-Id: Ib58cd4425bef52971c577f41f96fb0ea425d2e7d
2015-03-25 22:42:30 +00:00