Commit graph

119 commits

Author SHA1 Message Date
Krenair 7a9b6a5168 Save real tabs and allow configuration by users via JS hook
Bug: 39616
Change-Id: I64c3b9b53f1265f5b9c19edb480040113fa85590
2013-08-25 18:45:16 +01:00
Translation updater bot 7adc7b1a8b Localisation updates from http://translatewiki.net.
Change-Id: I98abcd7a0c80dee830a25de93959d5cd72b5bf5a
2013-08-18 19:31:59 +00:00
Translation updater bot 1ebd8c2be4 Localisation updates from http://translatewiki.net.
Change-Id: I2bf7fd9425eeb9dff43248ef8ff4f3343da4aecc
2013-08-05 19:34:49 +00:00
Translation updater bot eb962f4235 Localisation updates from http://translatewiki.net.
Change-Id: I1c611d6bd218494713c6c69047b6ee60b3e1a350
2013-07-14 19:14:54 +00:00
Translation updater bot a740c83534 Localisation updates from http://translatewiki.net.
Change-Id: I79f0cf02bce2d8fddf7f24ef478674b205128406
2013-07-10 21:27:03 +00:00
jenkins-bot 63ff4e1750 Merge "Adjust after changes in core" 2013-07-04 22:03:07 +00:00
jenkins-bot b670511574 Merge "Use CodeEditor for user css/js subpages" 2013-06-10 17:41:44 +00:00
Translation updater bot 70b2d942c3 Localisation updates from http://translatewiki.net.
Change-Id: Icb6e74b374f3d938053ab6e56e723861556f9e99
2013-06-03 18:19:21 +00:00
Translation updater bot 1ee6b5cdcb Localisation updates from http://translatewiki.net.
Change-Id: I7860cb8a0f7e369c48c9777a0bd220b272da37f1
2013-06-03 11:40:58 +00:00
Translation updater bot eeaf2083f9 Localisation updates from http://translatewiki.net.
Change-Id: Id08cd79f9af28a08cb62c72548d91dc99c940819
2013-05-21 05:48:20 +00:00
Brad Jorsch ce1cfd6a0e Use CodeEditor for user css/js subpages
The test for $title->isCssJsSubpage() seems to have gotten lost in
the refactoring in r110794, so enabling CodeEditor for core only
affects the MediaWiki namespace. This restores that test, so user css/js
subpages also get CodeEditor when $wgCodeEditorEnableCore is true.

Change-Id: Id02825f922a1ed0aace7c9ffd940fe8d29bb5d79
2013-05-20 20:56:50 +00:00
MatmaRex d841459c2e Adjust after changes in core
I6a6c12a9, Id27555c6.

Change-Id: I2e93cfffd7b31b090c93f7911e1e45f2a6619371
2013-05-17 22:04:51 +02:00
Brad Jorsch b802deafbf Make CodeEditor cooperate with the experimental live preview
LivePreview takes the text from the textarea and sends it to the server
via an Ajax call to handle preview and diff. But CodeEditor hides that
textarea, and only updates it when the form is submitted or the "disable
CodeEditor" button is used.

Fortunately, LivePreview already provides a custom JavaScript event to
indicate when it is about to pull the textarea contents. So all we have
to do is listen for that and update it.

Bug: 47235
Change-Id: Iba1b727c55aabcd31afc06cec99618fcdce207d8
2013-05-07 11:08:47 -04:00
Translation updater bot 8cad4501ac Localisation updates from http://translatewiki.net.
Change-Id: I225f414ae5a7ee64df498d75e1543711bdfa4416
2013-03-25 19:34:07 +00:00
Ori Livneh 1848feb329 Merge "Disable background linting using WebWorkers" 2013-02-20 10:57:06 +00:00
Translation updater bot d98a0faf1b Localisation updates from http://translatewiki.net.
Change-Id: Ia2388945d38d0788e352c5874aa683448587cd14
2013-02-19 20:36:05 +00:00
Ori Livneh 8ee19004b3 Disable background linting using WebWorkers
Ace uses JavaScript Web Workers for linting code. Ace's attempt to load workers
in JS and JSON modes runs into the mismatch between its require()
implementation and ResourceLoader, resulting in a request for
/worker_<lang>.js, which 404s.

Change-Id: Ia60ef2122c015635ef0ad963a956b4f77cd6f7e8
2013-02-14 19:05:45 -08:00
Translation updater bot 76b4b6e80d Localisation updates from http://translatewiki.net.
Change-Id: Ie3a781aa1dc442de894293f0d033304385a9fb1c
2013-01-21 20:46:17 +00:00
Translation updater bot 75378095a8 Localisation updates from http://translatewiki.net.
Change-Id: Ibc289523891d622fab6e7e51d39c71175ca3cbe1
2012-12-31 20:35:03 +00:00
Translation updater bot bb240010d5 Localisation updates from http://translatewiki.net.
Change-Id: I792f2e8682c749c79891fceeb006279da029792e
2012-12-29 19:36:51 +00:00
Ori Livneh 920f6b7060 Merge "(Bug 42561) Enable Ace's JSON mode" 2012-12-29 08:32:32 +00:00
Translation updater bot d0301440bd Localisation updates from http://translatewiki.net.
Change-Id: I4c96d4a5570cb4dd45a087de2ba78207242130ff
2012-12-26 21:02:15 +00:00
Translation updater bot 69cadfdee2 Localisation updates from http://translatewiki.net.
Change-Id: Ifa4731953b08ce7cf3e79b666d2e04eb2e44dd8c
2012-12-25 20:01:39 +00:00
Translation updater bot 440d27f629 Localisation updates from http://translatewiki.net.
Change-Id: I21f535d563e27c90e2bdd04f7a4a4e3c70d1ff67
2012-12-23 21:46:18 +00:00
Translation updater bot 6c6b90b471 Localisation updates from http://translatewiki.net.
Change-Id: I16d94b02f285ce51d9294c0fd6da731c90f44f9f
2012-12-21 20:14:49 +00:00
Ori Livneh 4ae61874af (Bug 42561) Enable Ace's JSON mode
MZMcBride suggested CodeEditor should be deployed to Meta, citing the
need for a JSON-aware interface for editing articles in the new
Schema: namespace, which are JSON-encoded. The bundled distribution of
ACE supports JSON, but the extension does not include it as one of the
file formats it supports.

Change-Id: Ice63dece67c732b76c23abc617782332435427cf
2012-12-01 01:09:55 -08:00
Translation updater bot 33178edcee Localisation updates from http://translatewiki.net.
Change-Id: I6c6ca6c6220cefd1329a93a4296ffedb00723f71
2012-11-28 20:13:50 +00:00
Translation updater bot 374cedd883 Localisation updates from http://translatewiki.net.
Change-Id: I90e405fc0a52bd00ffa258185ec3c9f466fb7e1b
2012-11-08 21:07:23 +00:00
Translation updater bot d221a0f341 Localisation updates from http://translatewiki.net.
Change-Id: I3c3fc39e87aa0ea5578963cdf928e5c1a6ed9f5f
2012-10-22 01:10:32 +00:00
Translation updater bot a57a20af5a Localisation updates from http://translatewiki.net.
Change-Id: I5fe4eb9a2d18c2ad9ce1ada6d54ba706a543d0be
2012-10-07 20:31:21 +00:00
Translation updater bot e613b599a0 Localisation updates from http://translatewiki.net.
Change-Id: I1e00ee1605a164d104059238455857707733e079
2012-10-02 13:37:45 +00:00
Translation updater bot 31f5f66bba Localisation updates from http://translatewiki.net.
Change-Id: I0f873a7533aeea280a84462dd1fca00242ebfc46
2012-09-26 19:41:50 +00:00
Translation updater bot 2aa27e6899 Localisation updates from http://translatewiki.net.
Change-Id: Ia88634b1cb1f5667e1e6717494633de554b3d9a2
2012-09-24 19:13:22 +00:00
Translation updater bot 4cc75cac78 Localisation updates from http://translatewiki.net.
Change-Id: I4d2b6def42253f738380d26bc56da7169c2763c3
2012-09-23 19:01:58 +00:00
Translation updater bot 9b28233975 Localisation updates from http://translatewiki.net.
Change-Id: I039f78decdd8b8956566337acca62d9582398f89
2012-09-13 20:41:00 +00:00
Translation updater bot 48ab40773f Localisation updates from http://translatewiki.net.
Change-Id: I95c3ac17a2c5f2cd86b23ba965b6d0fc1a33daed
2012-08-21 20:06:21 +00:00
Translation updater bot 9e4ff54f52 Localisation updates from http://translatewiki.net.
Change-Id: Iffb2c713a385328ddb783ddfeed595b2e2714fed
2012-08-20 19:18:04 +00:00
Translation updater bot d0dd2755e1 Localisation updates from http://translatewiki.net.
Change-Id: I07ef0fc45b12e0c67e96fe12dcb3930039730b3f
2012-08-16 20:20:35 +00:00
Translation updater bot 8e3af24469 Localisation updates from http://translatewiki.net.
Change-Id: If26f57978b881ee13ce240439188bd6a27915662
2012-08-14 19:35:12 +00:00
Tim Starling 880d1bb0e5 Merge "Allow core functionality of CodeEditor to be disabled." 2012-08-14 05:09:05 +00:00
Tim Starling 1787861005 Allow core functionality of CodeEditor to be disabled.
Scribunto requires that the CodeEditor extension be installed, but I
haven't reviewed CodeEditor for its primary use case, i.e. CSS and
JS. The automatic brace close feature in JS mode might be annoying for
some. I'm ready to deploy Scribunto but the CodeEditor core
functionality will need to be deployed separately.

Change-Id: I0d423563cc13f9f8ec00590c8e16273d10f1dbce
2012-08-14 15:04:20 +10:00
Translation updater bot df5d52ad83 Localisation updates from http://translatewiki.net.
Change-Id: Ia6e154d7b627d5553bf463f1aa42480ac9adebb7
2012-08-12 20:11:29 +00:00
Tim Starling 4fb277c607 Fix unbind call in disableCodeEditor
Presumably the unbind was meant to refer to the event which was bound in
setupCodeEditor(), not a nonexistent function. It appeared to work because
passing an undefined value as the second argument to unbind() causes all
event handlers to be unbound.

Change-Id: I51b8e7de5e95cb17b595a6b8022a6216048cdb41
2012-07-13 16:31:23 +10:00
Translation updater bot e9b26bb22b Localisation updates from http://translatewiki.net.
Change-Id: Ic7227569becab14a27bd0b8f2f18cf36a1deafab
2012-07-11 07:06:11 +00:00
Tim Starling 4bb8a4c984 Updated Ace
Updated Ace to the latest version of my fork on Github, i.e.
approximately 0.2.0 plus some improvements to the Lua indenting module.
I have submitted a pull request, so hopefully the next update will be
from upstream.

The suffixed file names (*-uncompressed, *-noconflict) have disappeared
from upstream, replaced by conditional compilation in separate build
directories. There's not much point in maintaining two unused copies of
the entire source tree, so I deleted them. To avoid migration issues, I
re-added symlinks in place of the suffixed files which were previously
referenced from MediaWiki.

Change-Id: Ic9d2450528769539dfea59bdde7620dbec903604
2012-07-09 02:13:50 +00:00
Translation updater bot f4c18de28c Localisation updates from http://translatewiki.net.
Change-Id: I7f6df5d9c417a399cd2bb1b9bc1d24c9d5b59d6b
2012-07-05 19:43:46 +00:00
Tim Starling 84cdb4f4bf Remove automatic edit summary
Remove the "using CodeEditor" automatic edit summary. Maybe this makes
sense for a gadget, but it certainly doesn't make sense as an extension
enabled by default for all JS, CSS and Lua pages.

Change-Id: If3b29d3878f5b8b43727ae34e4b5e3a2f4137a6f
2012-07-03 13:19:56 +10:00
Tim Starling c41ec784f9 Depend on ext.wikiEditor.toolbar
Depend on ext.wikiEditor.toolbar instead of just ext.wikiEditor since
both are needed, and under certain circumstances the module would try to
initialise before the toolbar component was loaded.

Change-Id: Ie6a725513399815670ff0d24fa394c0b3b3a2a7e
2012-07-03 13:19:43 +10:00
Translation updater bot 79bd275867 Localisation updates from http://translatewiki.net.
Change-Id: Iede70d8d79a81d1cb7d55ebab5e1b16d0c974b78
2012-07-01 13:49:45 +00:00
Translation updater bot 406ce081d4 Localisation updates from http://translatewiki.net.
Change-Id: Id647953a11d29ac104a342997a273ee3e000ad5b
2012-06-14 19:47:03 +00:00