Commit graph

21 commits

Author SHA1 Message Date
Derk-Jan Hartman 10583ec1a7 Avoid flash of content when hiding editHelp and the pipe separator
Bug: T120408
Change-Id: I651ea3d2b891ce347a51be9b3bc3e34351bc53dc
2016-05-25 11:26:13 +00:00
James D. Forrester d7a6475f98 extension.json: Remove call to non-existent wikieditor-toolbar-tool-file-pre i18n
This was present right from the start of this repo (in WikiEditor.php back
then) and I can't quite see where it stopped being a thing, except that it
pre-dates the conversion to en.json.

Change-Id: Ifeebb7dcf511f73f74934ee88a7a007dfdbcc803
2015-11-12 18:05:00 -08:00
James D. Forrester 31d8192cda extension.json: Remove calls to non-existent wikieditor-toolbar-help-content-heading1-*
No idea where these came from; they weren't present in I76e2a685 and yet
appeared in Id90e104 despite that being an apparent script-conversion of
the former.

Bug: T118541
Change-Id: Iac18c3c7ef8b1552313c2bd9f5b8fdc4cb8789b6
2015-11-12 18:04:54 -08:00
James D. Forrester ad1c8d71e6 extension.json: Remove calls to non-existent wikieditor-toolbar-characters-*
These were moved to core in Ifd0ed24 as special-characters-* but were not
removed from here, leading to a lot of failed message loads.

Bug: T118541
Change-Id: I8ccbbbf98177656284712134f3238a9e4482d32d
2015-11-12 18:04:24 -08:00
Prateek Saxena 5ea5952cd1 Use mw.Upload.Dialog to upload and insert file
Bug: T115748
Change-Id: I2427cd959f0d9b6872866e120e7bd0e7e298ec27
2015-10-23 16:54:24 +00:00
Kunal Mehta 3d7d4f85ad Set $wgWikiEditorFeatures in extension.json
We can do this now using a merge strategy of "array_plus_2d".

Change-Id: Ib1536633424bad46ff7861bc145025418af0286a
2015-09-24 21:20:40 -07:00
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