Commit graph

691 commits

Author SHA1 Message Date
Derk-Jan Hartman c949981553 Allow on the fly loading of language modes
Change-Id: Ie04138677dead4c23b1bcfef4e1f7a2cd6e8826e
2014-07-10 16:47:42 +02:00
Translation updater bot 0e1ed1f8ce Localisation updates from https://translatewiki.net.
Change-Id: I988f54f18c664236d63357383f66f78f5a82f6e9
2014-07-08 20:59:55 +00:00
Translation updater bot e444e66a74 Localisation updates from https://translatewiki.net.
Change-Id: Iabc5d9b082b07c9afa0e1dc18d40d90bea1e73c8
2014-06-13 20:48:29 +00:00
Translation updater bot 3f1b08b37c Localisation updates from https://translatewiki.net.
Change-Id: I77293d4f251f8c158d9639c9427e04778f98117e
2014-06-03 19:50:01 +00:00
Translation updater bot 9d74f1fa32 Localisation updates from https://translatewiki.net.
Change-Id: I3c0535406a1e248d426692103a2f3b8652bed8fa
2014-06-01 19:39:50 +00:00
Translation updater bot a15ace2936 Localisation updates from https://translatewiki.net.
Change-Id: I046360cf016bcddd3c5f49943fa08b007de6aaf2
2014-05-25 19:35:13 +00:00
Translation updater bot 96cfea0fdd Localisation updates from https://translatewiki.net.
Change-Id: Ia87a402a0451b8e37c6ab3fbef7a459a7f8cd7cd
2014-05-24 15:19:15 +00:00
jenkins-bot d1c3f04a7a Merge "Clear the statusbar if no annotations are left" 2014-05-09 09:18:11 +00:00
Derk-Jan Hartman 96f421386f Clear the statusbar if no annotations are left
Bug: 64758
Change-Id: Id2a26742420d03242265e537dc5404707c4bf714
2014-05-09 09:17:59 +00:00
Translation updater bot 91461650f2 Localisation updates from https://translatewiki.net.
Change-Id: Ia172b89a63ded63d3d69530f34e0d5182aa59629
2014-05-07 19:58:04 +00:00
Derk-Jan Hartman 1373c915df CodeEditor: Add basic code completion and snippet support
Bug: 48828
Change-Id: If7d165fc849ca9687dd7d511b0d111b9969fb2a7
2014-05-06 22:55:16 +02:00
jenkins-bot 26973c1fa9 Merge "Persistent disabling of CodeEditor" 2014-05-06 17:39:33 +00:00
Derk-Jan Hartman 0c172d6359 Persistent disabling of CodeEditor
This makes it so that if you do not have WikiEditor enabled, you also
will not have CodeEditor enabled. In the feedback we have seen so far,
this seems to be desirable for those users (bug 55936).

Also people were not able with the cookie pref for the editor, because
it can easily expire. This introduces a hidden pref, controlled by the
enable/disable CodeEditor button, to preserve this value instead (bug
46779).

It also gives a more reliable way to detect if the editor is enabled or
disabled. mw.user.options.get( 'usebetatoolbar' ) and
mw.user.options.get( 'usecodeeditor' ) combined should be able to convey
this information to something like WikEd (bug 62250).

Bug: 46779
Bug: 62250
Bug: 55936
Change-Id: I4639f68c00a2b9183a6f89b5e00983c07a8592a2
2014-05-01 10:33:26 +02:00
Derk-Jan Hartman 96afba23d6 IE8: Fix line endings in CodeEditor
IE8 uses innerText, which is a bit more sloppy with line ending
preservation than other browsers are. Instead of copying the value into
the DOM and have the Editor pick it up during init, just set it directly
on the EditSession. Should even be faster.

Bug: 64559
Change-Id: Iafbb07afb6d06ed94057f8ddf8b080fd136d7fb3
2014-04-30 14:26:53 +02:00
Derk-Jan Hartman 0154e0d0e8 Fix trailing comma
Also applied upstream at https://github.com/ajaxorg/ace/pull/1938

Bug: 64559
Change-Id: Ieb55819b634c14335806bd7ce3e6c1f063a346cc
2014-04-29 20:51:51 +02:00
jenkins-bot 8da019fe29 Merge "CodeEditor: Disable in IE7, too unstable." 2014-04-29 17:48:24 +00:00
Derk-Jan Hartman a99f5c824c CodeEditor: Disable in IE7, too unstable.
Bug: 64559
Change-Id: I59a8cebf1d1c7f3e839295d8a85739d9c2dc2683
2014-04-29 14:35:02 +02:00
Derk-Jan Hartman 7847555702 Update Ace to 29-04-2014
Updates ACE to commit: 4949e18f00e4dbf34fc8a213909ef6ae3e1a1015

This includes fixes for IE7/8 support, which was broken in the last ACE
release. Specifically
051128c16f (diff-502b909e9de186749df3051f8d4bfa42L137)

Bug: 64559
Change-Id: I0765c5f95de81a5ce9632f6eb5422b98c02941ff
2014-04-29 11:03:14 +02:00
jenkins-bot 0343d914c3 Merge "Add a status bar to the CodeEditor" 2014-04-22 17:37:11 +00:00
Translation updater bot cc19d3b989 Update i18n shim
A performance issue was fixed in the shim(s) generated by
generateJsonI18n.php, so it needed to be updated.

Change-Id: I964d5aa94d17417b1907144543591df9a7052401
2014-04-22 13:14:08 +00:00
Translation updater bot 1af1ad0edd Localisation updates from https://translatewiki.net.
Change-Id: I034c015ca9eebf4aeaa2354b07fcf9aa094ccb9a
2014-04-20 20:03:34 +00:00
Translation updater bot fdac02596a Localisation updates from https://translatewiki.net.
Change-Id: I412455732d324d516115dd435fb972ca46e78027
2014-04-18 19:34:38 +00:00
jenkins-bot 411ca4eaf1 Merge "Allow the CodeEditor in read only mode" 2014-04-17 03:21:21 +00:00
Derk-Jan Hartman 0759a6de4f Allow the CodeEditor in read only mode
Depends on: I6885d617e18562acf0331e8db5790b53b489dbc2
Bug: 45258
Change-Id: Ie69e9c33bc307ec34abb7dcf3f427cfbe407fde3
2014-04-16 23:54:01 +02:00
Translation updater bot 699a2446dd Localisation updates from https://translatewiki.net.
Change-Id: I6908010d9d60a76d7f47d2fbe698d311c4eca03d
2014-04-16 15:30:27 +00:00
Translation updater bot 8d480ac1e4 Localisation updates from https://translatewiki.net.
Change-Id: Id99f7f05ba9d92f8fc07ed47dbe19b29627ec067
2014-04-15 20:05:53 +00:00
Derk-Jan Hartman 00905d1829 Add a status bar to the CodeEditor
- Show counts of errors/warnings/info annotations. This is useful
  because the annotations are in the gutter, so in big files it takes
  a lot of scrolling to look for errors
- Clicking the totals count skips you to the 'next' annotation
- If the current line contains an error, show the message of the error
  in the status bar.
- Show the current line:column number, the selection range and the
  editor mode.
- Degrades to a useful and readable but not pretty state in IE7

More complex version of: Ib9f08fcbc0365302756095b9027289736856fc73

Bug: 63294
Change-Id: Ided0804d5eb7864452287087dd1cf5a3dd8ff078
2014-04-14 09:46:55 +02:00
Translation updater bot 187835cbf8 Localisation updates from https://translatewiki.net.
Change-Id: Ida356cdcab34363dd406d1be946b7e7ed007bb55
2014-04-13 19:13:13 +00:00
Translation updater bot 68b0438348 Localisation updates from https://translatewiki.net.
Change-Id: Idaa2effb28e75893c13818b561fca1909a233eca
2014-04-11 19:46:54 +00:00
Translation updater bot f16429c2b1 Localisation updates from https://translatewiki.net.
Change-Id: I74944dbd00d0ac4732571fb68cb285a00d007355
2014-04-10 20:28:54 +00:00
Translation updater bot 49fc41e103 Localisation updates from https://translatewiki.net.
Change-Id: Icc1b259b16e48c4d856051e4b713ad35ef42f795
2014-04-07 20:33:46 +00:00
Translation updater bot 12b0a2068a Localisation updates from https://translatewiki.net.
Change-Id: I92942e69dd0d0122cdbc019525141006939b1b5e
2014-04-06 19:38:20 +00:00
Translation updater bot 4f2ab034ce Localisation updates from https://translatewiki.net.
Change-Id: Id5ed2ffa050d1ed12e1437632d65b898c39df974
2014-04-04 20:20:55 +00:00
Translation updater bot f6dce94439 Localisation updates from https://translatewiki.net.
Change-Id: I73e2ae19ed3f17040134097bf198436b0e7eb248
2014-04-01 19:41:58 +00:00
Translation updater bot 44ee572d5f Localisation updates from https://translatewiki.net.
Change-Id: I1a738ca09da014dfa522eafd6e545bff90960363
2014-03-31 20:13:16 +00:00
Translation updater bot 495be60c60 Localisation updates from https://translatewiki.net.
Change-Id: I07729898e4e637a010c0f06f1a6e9ae34810f89d
2014-03-30 20:10:01 +00:00
jenkins-bot ecff4f5837 Merge "Ask for confirmation when saving document with errors" 2014-03-30 12:03:51 +00:00
Derk-Jan Hartman 262bfde28e Ask for confirmation when saving document with errors
Bug: 63202
Change-Id: Ifbdf976f3c0f27da67d7cf034c040d4279d62217
2014-03-30 00:47:10 +01:00
Translation updater bot 8cf9fffd5c Localisation updates from https://translatewiki.net.
Change-Id: Ia09a20d4ffc79bbc05042f451c018be73a990008
2014-03-28 19:25:39 +00:00
Siebrand Mazeland 27249af1cc Migrate to JSON i18n
Procedure per https://www.mediawiki.org/wiki/Manual:GenerateJsonI18n.php
with shim.

Change-Id: Id2e1243b0d67c0e6e54e4a147adca6df5d8ee78e
2014-03-26 10:12:39 +01:00
Derk-Jan Hartman 03327915be Work around a problem with web workers in ACE
This will do for now, but we need a better fix upstream

Change-Id: I621066a4eb5ba1e14f92d2896852026d23b4be18
2014-03-25 10:59:08 -07:00
Derk-Jan Hartman 28c4b5ac10 Update ACE to Mar 16, 2014
This should be merged at the same time as it's followup patch, which
fixes an issue with loading webworkers when hosted on protocol
relative URLs.

Amongst other issues, it fixes bug 60156 with } pairing

Bug: 60156
Change-Id: I962c70ea2a07d27e0c3774095d63f9a5cd3de76e
2014-03-25 17:46:47 +00:00
helderwiki 6276431c6e Remove inexistent hook "LivePreviewPrepare"
This hook is never fired, therefore, per code review of
Ife952fc165dacea3ae7726e09bf61279f4bdae59 it should be
removed from CodeEditor.

Bug: 47235
Bug: 52071
Change-Id: Ic9dd9066f7d1676f45381cb6796425f13490fea3
2014-03-19 20:21:04 +00:00
Derk-Jan Hartman d0ec3d6982 Fix JSHint for CodeEditor
Change-Id: Iaf5c1fde6e002ea31eeef88f1963090e14784a7a
2014-03-17 00:28:35 +01:00
Reedy d6bc2282db Add COPYING
Change-Id: I9db9af4ad29641e66e71876002d56f5aa5462c58
2014-03-01 16:20:02 +00:00
Chad Horohoe d9b9580e6f $wgTitle and $wgOut weren't needed here
EditPage::showForm::initial was wrong about its parameters.

Change-Id: I7f2194dee00090a0c4ff35684607384cfc6897a9
2014-02-05 11:21:16 -08:00
Translation updater bot f399b074ab Localisation updates from https://translatewiki.net.
Change-Id: I54ca3b65a3294500d57090236f85ad554d01fc36
2014-01-23 20:11:33 +00:00
Derk-Jan Hartman b50d6d2fc7 Revert "Update ACE to Jan 17, 2014"
The update throws an error for the workers. Better we revert this for
now.

This reverts commit c2eed4f0e6.

Change-Id: I7090b833dc41a25a2c360113c10717055c003330
2014-01-22 16:29:24 -08:00
Translation updater bot 96e33604e0 Localisation updates from https://translatewiki.net.
Change-Id: Ifc518310cb93aac197d554cc6768c04143eaf3f2
2014-01-19 20:13:02 +00:00
jenkins-bot 0b9626eab3 Merge "Update ACE to Jan 17, 2014" 2014-01-19 07:37:14 +00:00