Commit graph

1191 commits

Author SHA1 Message Date
Niharika29 99e31d152f Show a popup for first time Codemirror users
Bug: T165003
Change-Id: I545a57bdb273ab6906711e2d65dc029293ecc02a
2017-06-29 00:20:14 +00:00
Translation updater bot 2c5aa03614 Localisation updates from https://translatewiki.net.
Change-Id: Ib22fd80ff67bbc47582abb3e63b58f1283604b6d
2017-06-28 22:43:31 +02:00
jenkins-bot 1d50fff685 Merge "Add syntax highlight as a beta feature" 2017-06-27 20:16:48 +00:00
niharika29 48358c1f57 Add syntax highlight as a beta feature
Bug: T165543
Change-Id: If7eb2dc3f7c00a91e5ca39ae564f63efa07bbead
2017-06-20 05:07:53 +00:00
Translation updater bot 73d5c16886 Localisation updates from https://translatewiki.net.
Change-Id: I8ac63025ef0bcaf336cef3bfc3223cdbc7d9e40f
2017-06-18 22:29:38 +02:00
Amir Sarabadani ed02a3cf86 Add CODE_OF_CONDUCT.md
Bug: T165540
Change-Id: I853059943448dcdfaaf011c5905c60d5e4791bf1
2017-06-07 13:00:49 +04:30
Translation updater bot f44dc4702c Localisation updates from https://translatewiki.net.
Change-Id: I4a8f5bb59ea01227e0b4319897cab15185ecdffc
2017-05-28 22:16:18 +02:00
Translation updater bot d27f6972f8 Localisation updates from https://translatewiki.net.
Change-Id: I849e78632e89c666666c28397b2d37ec27cdfe70
2017-05-24 22:40:30 +02:00
Translation updater bot 814d3e9600 Localisation updates from https://translatewiki.net.
Change-Id: I3d47b14bb6a1f8371ec27654f002ed5714a35b05
2017-05-23 22:44:00 +02:00
Translation updater bot a13bb83922 Localisation updates from https://translatewiki.net.
Change-Id: I81fde8693db76b0b1a965ded6b8e47500e31e604
2017-05-21 22:35:10 +02:00
Translation updater bot 26a1baffaa Localisation updates from https://translatewiki.net.
Change-Id: I49a628a9fac6230504186b1e1f8370c84de6dbea
2017-05-20 22:28:33 +02:00
jenkins-bot a9cd58f25e Merge "Replace CodeMirror icons with new icons (#36C)" 2017-05-20 16:13:08 +00:00
Translation updater bot c568e2cf47 Localisation updates from https://translatewiki.net.
Change-Id: I8e240b3c9d38e44f043715165efe3486a80a454d
2017-05-14 22:21:16 +02:00
Pavel Astakhov 8ff5f6afee Replace CodeMirror icons with new icons (#36C)
Bug: T164441
Change-Id: I2e185dfa468ede51bd1a0e41b3b4dcf43a74313c
2017-05-14 23:44:17 +06:00
Pavel Astakhov 0676a5263e Increase z-index of WikiEditor toolbar to above CodeMirror scrollbar
Otherwise the popup menu at WikiEditor toolbar displayed under
   the CodeMirror layer.

Bug: T165012
Change-Id: Ie4e32cccad00f05e09f99af1c7c9d503f4bcaa0f
2017-05-12 15:10:29 +06:00
Translation updater bot 25a3a607bc Localisation updates from https://translatewiki.net.
Change-Id: I1a0cf90b0d1850c49d617c2d55435e93cd6c60ff
2017-05-11 23:05:25 +02:00
Pavel Astakhov 0cdf013c73 Take out gray background behind list bullets in syntax highlighting
Bug: T165001
Change-Id: Iec64336881ee38938739cab76a3090542b1ff973
2017-05-11 12:10:15 +06:00
Translation updater bot 7374adfd01 Localisation updates from https://translatewiki.net.
Change-Id: I57a3660c6365ece10589e55fa20fffd180346e18
2017-05-09 22:44:44 +02:00
Translation updater bot 975f15358b Localisation updates from https://translatewiki.net.
Change-Id: Ibc95f34ca6469ead1a4ba5be448fe72f01887be2
2017-05-08 22:38:10 +02:00
jenkins-bot b80827d8d8 Merge "build: Update eslint to 0.4.0 and make a pass" 2017-05-08 18:25:48 +00:00
jenkins-bot bfa1e8bf87 Merge "Use consistent label for button across editors" 2017-05-08 18:25:47 +00:00
jenkins-bot 2736d27c40 Merge "VisualEditor source mode support" 2017-05-08 18:25:47 +00:00
Ed Sanders 59aed7d2e2 build: Update eslint to 0.4.0 and make a pass
Change-Id: I580e7a2ed7276dc3b9546b497ecf2f8f4efe1aa6
2017-05-08 16:54:10 +01:00
Ed Sanders de6b08919b Use consistent label for button across editors
Change-Id: I1a299522e95cdb4a6e5bdbdda1c65d4fcec22133
2017-05-08 16:54:10 +01:00
Ed Sanders 7b01a98ad0 VisualEditor source mode support
Long-term todo:
* Performance will be poor on large pages due
  to using a auto-height textarea which CodeMirror
  doesn't optimise.

Change-Id: I16598fcdbeee51e6fae88376ec81f1c8552b383d
2017-05-08 16:54:10 +01:00
jenkins-bot babbff7a0d Merge "Refactor the Integration with other extensions (v 4.0.0)" 2017-05-08 15:13:47 +00:00
Antoine Musso caf39a6bfe build: add jakub-onderka/php-console-highlighter
Highlight PHP code when parallel-lint fails

Change-Id: Ie7582baa805457a0445a119bfd5fb859f693e51f
2017-05-05 21:40:00 +02:00
Pavel Astakhov c9b4aa65fd Refactor the Integration with other extensions (v 4.0.0)
This patch makes initialization easier and cheaper.

Since only the PhpTags extension uses the CodeMirrorGetAdditionalResources
  hook it was removed. Instead, the CodeMirrorPluginModules and
  CodeMirrorTagModes properties are used in extension.json file.

This patch adds ext.CodeMirror.lib.mode.php module for the PhpTags
  extension (with dependences). In CodeMirror there are a lot of modes
  they will be registered on request (if they will be requered for
  extensions).

Examples of integration:
* Cite: I1bf156fa813af4d5f891619f692047bbdb8a1a86
* PhpTags: Ie339f0475e63885e603defaee2cdcccd6a95fafc

Bug: T163238
Change-Id: Idb7a1a5769a1047ef2f7cd25a7152f73a6613225
2017-05-04 21:20:21 +01:00
jenkins-bot 8f8a68f056 Merge "wikiEditorToolbarEnabled: Rewrite if block as statement" 2017-04-27 01:45:49 +00:00
jenkins-bot 0f22c06b9c Merge "Swap the enable/disable labels" 2017-04-26 17:19:25 +00:00
Pavel Astakhov 3954552b43 Swap the enable/disable labels
Bug: T163916
Change-Id: Ie868556fe31ea4aae976e94526cc96bb79803626
2017-04-26 22:48:13 +06:00
L10n-bot ea623d3798 Merge "Localisation updates from https://translatewiki.net." 2017-04-24 20:36:22 +00:00
Translation updater bot 8ccf411684 Localisation updates from https://translatewiki.net.
Change-Id: I22d14de2759acdad302e52e3c14306caca7c67f9
2017-04-24 22:36:16 +02:00
Pavel Astakhov 6ce71b3667 Add additional classes cm-mw-ext-{tag name} to extensions tags
They can be used to create specific color themes (T163533)
See also bug T161694

Change-Id: I499e1e4b2e1e4fa972e28fc05a65047ecadc204c
2017-04-23 13:51:24 +06:00
jenkins-bot 1c7bac5c17 Merge "Syntax highlighting: Switch extension tags to green" 2017-04-21 18:34:38 +00:00
Ed Sanders 9205f900bd wikiEditorToolbarEnabled: Rewrite if block as statement
Change-Id: I516a8e8f1bf53dc784a2ab3ff49bd20b172dc6e8
2017-04-20 23:31:58 +01:00
Kaldari 14eea32e44 CSS hack for ext.wikiEditor module no longer needed
Change I7c7c3ba49 fixed the underlying bug.

Change-Id: Ida8a5dbd4e3602484f723d43bfa562389565e9d4
2017-04-20 13:59:42 -07:00
Pavel Astakhov e3ca35adf5 Syntax highlighting: Switch extension tags to green
Bug: T161694
Change-Id: I1817cd151ac253998f0381126a60960106db3848
2017-04-20 23:45:11 +06:00
Pavel Astakhov b7bc84d783 Remove some outdated code
Since WikiEditor uses wikiEditor-toolbar-doneInitialSections event
  we don't need to add it to ResourceLoader dependencies.

Bug: T161475
Change-Id: I7c7c3ba495c0292d2df052145e7930c86fcb48f5
2017-04-18 14:07:51 +06:00
jenkins-bot e2383eb772 Merge "Swap parser function and assessment template colors" 2017-04-17 22:54:13 +00:00
Translation updater bot 5a21063435 Localisation updates from https://translatewiki.net.
Change-Id: Ifb9d1b2bcb87b155daa721e92433b6c7087276e0
2017-04-17 22:22:14 +02:00
niharika29 2fb08d548f Swap parser function and assessment template colors
Bug: T162206
Change-Id: I2d8705a8ec44c668aebc4728cd84e0953cd497a1
2017-04-17 20:01:33 +00:00
jenkins-bot ae12f7758e Merge "Type hint for $wgParser" 2017-04-06 07:06:08 +00:00
jenkins-bot 36d0cf9fea Merge "Add some extra spacing around H1s and H2s" 2017-04-06 00:14:16 +00:00
Pavel Astakhov 6be1fbc134 Add some extra spacing around H1s and H2s
Bug: T161559
Change-Id: I0d10d39313c11fddefadff7ab13c262bd6606ed0
2017-04-05 11:18:12 +06:00
Pavel Astakhov cf07be26b3 Take out the blue highlight for cursor location
Bug: T162204
Change-Id: I6aca0103a2603bf37ff856a7dd6f2aa4137ee53c
2017-04-05 10:50:42 +06:00
Translation updater bot 80f38e03ec Localisation updates from https://translatewiki.net.
Change-Id: I314026d5085abc64b5596a9e1017b3e8524fa0c5
2017-04-04 22:36:11 +02:00
Reedy c4e0cf86d4 Fix some indenting
Change-Id: I6bb9a8875d053ddac564d6d74ad34c8c9b0332ae
2017-04-04 01:15:09 +01:00
Reedy 443d8b6988 Type hint for $wgParser
Change-Id: I91356be31d1ed7a9e4dd1efd140c55a9d91cbc1e
2017-04-04 01:04:36 +01:00
Reedy a71b44a8b9 array() -> []
Remove invalid "returns bool always true" comments

Remove return true from other hooks too, update their comments

Check for WikiEditor in a nicer way

Change-Id: I694e3b25f20e35cfc55ba269977047a9c52a2fca
2017-04-01 16:09:25 +01:00