Commit graph

496 commits

Author SHA1 Message Date
Kunal Mehta e8a193ae40 Set manifest_version in extension.json
Bug: T100745
Change-Id: I1ea45b4a7057833f141925329c640ebe1ac4ca41
2015-06-05 17:52:10 -07:00
Translation updater bot 2a76c356b5 Localisation updates from https://translatewiki.net.
Change-Id: I94696dc8877572aa74b1ab248da9796f3380fe5d
2015-06-05 20:56:26 +02:00
Translation updater bot 01088fe4d9 Localisation updates from https://translatewiki.net.
Change-Id: Ibd13351a5565395d06161e59ac11e5dd6a2e00d5
2015-06-03 22:09:01 +02:00
Translation updater bot c8dfd44a1c Localisation updates from https://translatewiki.net.
Change-Id: If5bb5925fac960f935f258d4124fdc76b76a64c7
2015-06-01 22:48:57 +02:00
Translation updater bot 8ad9d7a653 Merge "Localisation updates from https://translatewiki.net." 2015-05-31 20:24:00 +00:00
Translation updater bot 318a64597f Localisation updates from https://translatewiki.net.
Change-Id: Ie8f469ecd1afa3ae88fe6729405934c5b1ddc1d7
2015-05-31 22:10:20 +02:00
paladox 4b368e00ae Sync extension.json with CodeEditor.php and empty php entry point
Change-Id: I4e27986911bc73a1247f9e3f0127797fc560df1c
2015-05-29 23:12:10 +01:00
paladox 6880860564 Remove i18n shim
Change-Id: Ie9b6c2fce685e103ac90084eb793c341d79ee5eb
2015-05-29 21:44:16 +00:00
Translation updater bot f6f33d3f1b Localisation updates from https://translatewiki.net.
Change-Id: Iee35c78df607458177914d7beee7070e79c0da4c
2015-05-29 22:39:34 +02:00
Translation updater bot 0c9927b9a0 Localisation updates from https://translatewiki.net.
Change-Id: I9a6e8c8b7c1b8d42c12610c1616fce62387b3be4
2015-05-28 22:52:06 +02:00
Translation updater bot 9fcb6f62c3 Localisation updates from https://translatewiki.net.
Change-Id: I20fa18c7be85f1eea1e0bae522964da65e0e5a30
2015-05-27 22:21:16 +02:00
Translation updater bot 72518ad31e Localisation updates from https://translatewiki.net.
Change-Id: I89fd3b5ed51922906bb64d4b637edc92bd9f7a7b
2015-05-26 22:19:52 +02:00
Derk-Jan Hartman aba51ef4f5 Additional CodeEditor buttons
- toggle invisible characters.
- search and replace (disabled)
- indent/outdent
- line wrapping
- go to line

Icons by Connor Shea

Bug: T61923
Change-Id: I9e434d1b23f8254bc654ebbd31b5e4b70bbf5fe1
2015-05-26 01:43:47 +00:00
Translation updater bot a7de818fcd Localisation updates from https://translatewiki.net.
Change-Id: I6d42097fa7083e1eecd7c57221707aaed2250496
2015-05-25 22:24:35 +02:00
Derk-Jan Hartman a9cdbcacb4 Add tooltip to annotation indicator
In the past I had made the annotation indicators clickable, and your
cursor will in this case navigate to the next annotation in editor.
This was not really easily discoverable, so I have added a tooltip to
make it slightly more discoverable.

I also added a CSS line to prevent users from accidently selecting the
text (or rather numbers) in this area, which I had noticed happened to
me at times when trying to click it.

Change-Id: I47ecba232ff925169d0f64d85ae34ff6564cc1a5
2015-05-25 11:07:41 +02:00
Translation updater bot d4f2df8111 Localisation updates from https://translatewiki.net.
Change-Id: I80b7cd4b14e3dd4e78a8d649bb6dbd6e8b6f5bb7
2015-05-18 22:12:38 +02:00
Translation updater bot e6e7815f46 Localisation updates from https://translatewiki.net.
Change-Id: Ic6012f0924652b7f1d7bee2d83aa7608e9442003
2015-05-17 22:03:28 +02:00
Translation updater bot ae0db408cc Localisation updates from https://translatewiki.net.
Change-Id: I635e3ac1e42cdb51bc81ae4fda23f5a16adadcba
2015-05-01 22:00:51 +02:00
Translation updater bot 749b13f6ca Localisation updates from https://translatewiki.net.
Change-Id: Icb4358815f763c8d2f2a72cfd788f5d156640b36
2015-04-26 22:28:05 +02:00
jenkins-bot 1048356973 Merge "Only block for errors when saving" 2015-04-02 14:04:46 +00:00
Derk-Jan Hartman 76b4899835 Only block for errors when saving
Bug: T70765
Change-Id: I947f7f5bda4272677dd8d090e155b1010a66795d
2015-03-29 16:22:42 +02:00
Translation updater bot c4f00c0170 Localisation updates from https://translatewiki.net.
Change-Id: I109db8dcebabcfe5b0724f4e5a7fca625740aa71
2015-03-24 22:21:22 +01:00
Kunal Mehta 573afa02a1 Add extension.json, stop using $dir
Bug: T87897
Change-Id: I43eaa3f2d96cba98ac6d317b7bff7ba40f16bc7f
2015-03-02 17:55:52 -08:00
jenkins-bot 442e3a0338 Merge "Remove trigger 'LivePreviewPrepare'" 2015-02-05 12:17:30 +00:00
Fomafix d3be0b552b Fix whitespaces
Change-Id: Ia26f885ac2423d9f4a67b9e4d58a90aba22d0f07
2015-02-05 12:13:18 +00:00
Translation updater bot bef2e7ea52 Localisation updates from https://translatewiki.net.
Change-Id: I07cc5d5e641c202b3e4beb609a51101593d2cf01
2015-02-02 22:25:47 +01:00
Derk-Jan Hartman 7254cda535 Ace: Update to 2015-01-28
Updated to
6b88b939c2

Includes fixes for drag delay (bug 60432)
and chrome useragent detection: Github issue
https://github.com/ajaxorg/ace/issues/1950

Bug: T62432
Change-Id: I5ac67a812f09ac43e73475613afc9a3f1ddc9a75
2015-01-28 11:04:27 -08:00
Translation updater bot b7b54e6c7d Localisation updates from https://translatewiki.net.
Change-Id: I2d1b3db94e975efc98ea681543a93c72500bb0e5
2015-01-14 22:37:24 +01:00
Fomafix f64a164986 Remove trigger 'LivePreviewPrepare'
Depends on I30bd709d8 in mediawiki-core.
The '#wpTextbox1' gets read by textSelection( 'getContents' ).
The trigger is not necessary anymore.

Change-Id: Iae54a2422ff1814f8858723d51fcb10d04645c51
2015-01-03 15:35:06 +00:00
Derk-Jan Hartman 2d4810f186 Add setContents to textSelection impl of CodeEditor
Change-Id: I0a5434b9d40d8945b6b801e2aa2b4b23466ea71c
2014-11-29 20:10:44 +01:00
Translation updater bot 6a0dca2492 Localisation updates from https://translatewiki.net.
Change-Id: Ie04afb394a1d6940e142f2d6eda39185f476027d
2014-11-26 22:29:19 +01:00
Translation updater bot 3423dcccca Localisation updates from https://translatewiki.net.
Change-Id: I9fc3bc49e8db3879cc2376d440f75a303d39c44f
2014-11-23 22:39:41 +01:00
Translation updater bot 8f9078397c Localisation updates from https://translatewiki.net.
Change-Id: I0f275e428c542a4f63c8f43bacde04b220e074db
2014-11-21 22:07:08 +01:00
jenkins-bot 8d45645cdc Merge "Disable CodeEditor on mobile" 2014-10-31 17:28:35 +00:00
Florianschmidtwelzow 64b286d04e Remove whitespace at the end of lines
Change-Id: Icccee7461ecff22cbc5076df9f3803b6c2e29f28
2014-10-29 18:23:00 +01:00
Derk-Jan Hartman c91e62b74f Improve the CodeEditor toolbar
There isn't much in it yet, but it's a start.
Also needs a patch in WikiEditor, which is forcing some elements to be
visible for no apparent reason.

Change-Id: I6b57e5c11066a104a89bef3b7c8efd2129a80a8f
2014-10-26 18:09:26 +00:00
Derk-Jan Hartman 37228b2578 Split jquery.textSelection and WikiEditor api overrides
Split context.evt up into 2 objects
- context.fn, where WikiEditor API functions are defined
- textSelectionFn, where all textSelection API function are defined.

- scrollToTop() is moved to the WikiEditor API block
- getElementAtCursor() is removed. It is no longer in use by the
WikiEditor API or the textSelection API.

This depends on MediaWiki core change I14492572

Bug: 29328
Change-Id: I57bc7791dc61b7edcf258e6c16445d5a4a8783cf
2014-10-16 21:18:15 +02:00
Timo Tijhof 72f3c78381 Use returnFalse instead of jQuery.noop
Follows-up 86622b6.

While these functions looked like placeholders in a configuration
object to allow calling them unconditionally, they actually had
meaning. They were event overrides to prevent WikiEditor from
running its own event handlers.

They were implicitly returning false by having no return statement
(implying a 'return undefined', which casts to false).

The separate functions were already quite obfuscated as returning
false, using $.noop made it even harder to understand what's
going on.

Use an explicit return value instead.

Change-Id: I0852fbc9225d069f50085787d2d0105fd7b1743c
2014-10-16 20:37:18 +02:00
Fomafix 86622b63fb Use jQuery.noop
This avoids the definition of several empty functions.

Change-Id: Ic6fe5c46e1ed90217c1935dd0a87c6b97a0ad513
2014-10-16 19:25:17 +02:00
jenkins-bot aefe1def47 Merge "Use mediawiki.api.parse" 2014-10-16 17:16:42 +00:00
jenkins-bot 18423323d2 Merge "Apply coding conventions for JavaScript" 2014-10-16 17:16:41 +00:00
Fomafix d3e3a9796e Use mediawiki.api.parse
Change-Id: I9106245c6c0ee98093155c8b9a8f92b270bde063
2014-10-10 13:31:02 +00:00
Fomafix 3b30aaf78a Apply coding conventions for JavaScript
* Fix closure invocation
* Avoid global variablesin closure
* Avoid unused variable
* Fix whitespaces

Change-Id: I67552a67e8ab493e5af8717c11668430886ee468
2014-10-10 13:24:22 +00:00
Fomafix 9e2d2c842a Apply coding convections for JavaScript
* Reorder functions to avoid forward references
* Remove unused variables saved and summary
* Fix whitespaces
* Avoid else after return
* Combine var blocks

Change-Id: I2a66645c24b9cce287c4196f2c4a762420ad80a0
2014-10-10 11:58:58 +00:00
Kunal Mehta 6e59232eeb Use CodeEditor for JSON pages
Change-Id: I5395fa847944640bc9ae59f269bfe4e156885e5d
2014-10-07 12:57:03 -07:00
Translation updater bot a3db72d1b3 Localisation updates from https://translatewiki.net.
Change-Id: I825d505481907de9ef88d0c17b9c54a202e76201
2014-09-13 00:45:19 +02:00
Translation updater bot 3cc158aff1 Localisation updates from https://translatewiki.net.
Change-Id: Ib233ba817e29d09fb2f410b726ce4ddfc3f2ec1e
2014-08-31 21:52:47 +02:00
Derk-Jan Hartman 7bfd574cbe CodeEditor: Keep experimental Geshi editor working
Still experimental, not really functional, but this fixes it to at
least run again.

Change-Id: Ia71aa9421179654a063c706e0cbf3016a2fcc280
2014-08-28 19:41:19 +00:00
Translation updater bot b7413b5ff8 Localisation updates from https://translatewiki.net.
Change-Id: I2b18a648b6efca72e0430e3061922a0cfd02736d
2014-08-23 21:51:54 +02:00
Translation updater bot a65e1cb369 Localisation updates from https://translatewiki.net.
Change-Id: I71a0022f9244573bec060226e1e382f2616c361a
2014-08-18 22:37:25 +02:00