Commit graph

1076 commits

Author SHA1 Message Date
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
Ed Sanders 02c22f53ff Styling fixes
* Move CSS out of mediawiki.css which is for wikitext
  highlighting rules.
* Account for wikieditor-ui adding wrappers even when
  disabled.

Change-Id: I0fca693a6771ee1d790800c9afd5c7091fda20c1
2017-03-27 14:02:25 +01:00
Pavel Astakhov 29fa173331 Fix CodeMirror state when initializing
Before CodeMirror was enabled every time (ignoring user settings)
since switchCodeMirror was called in initialisation and some others bugs...

Change-Id: I418c64000e05dbfac62f5bb2327cfe7ed74efb17
2017-03-27 14:23:21 +06:00
Kaldari a0be6aabf2 "Syntax highlight" should be two words in English, not one
Change-Id: I499a85e6eecde51cba4562be0e60cf2dd4b9bb93
2017-03-26 22:58:56 -07:00
Kaldari fe11d52eaa Explicitly declare mediawiki.api.options module dependency
Change-Id: Ie1915e6c0d0671d7f3327d0ad80542ca967dab98
2017-03-26 22:26:49 -07:00
Ed Sanders 3980fa0af0 Cleanup and use SVG icons
Change-Id: Idcad8e2554c5e44155c88bd925186095e3aad930
2017-03-27 02:59:13 +00:00
jenkins-bot 47b8f19d8e Merge "Switching fixes" 2017-03-27 02:54:23 +00:00
jenkins-bot 1512e38c4e Merge "Only give code mirror focus for specific commands" 2017-03-27 02:54:23 +00:00
jenkins-bot eaac96c5e1 Merge "Update CodeMirror to 5.25.0" 2017-03-22 21:57:42 +00:00
Ed Sanders 806527d8a1 Switching fixes
* Fix state toggle in WikiEditor
* Update options API code
* Fix font-size and line-height so text doesn't move
* Append to WikiEditor after loading so it appends in
  correct part of DOM.
* Only add border in classic editor

Change-Id: I5e80298030633d4859d01a92b6c61ef1fa969e96
2017-03-22 11:48:41 +00:00
Ed Sanders 53c64371dd Only give code mirror focus for specific commands
Previously focus was being called even for getContents, causing the
editor to instantly steal focus from the edit summary input (!!).

Change-Id: I5a14850d90a7c5605026e1fac192585ee62b4615
2017-03-22 11:48:41 +00:00
Ed Sanders 66ba217ba2 build: Replace jshint/jscs with eslint, introduce stylelint
Change-Id: I9b5afb39f5a0d32e722b2a1f56c219b8c85b451c
2017-03-21 16:45:56 +00:00
Ed Sanders 75ca882e38 Update CodeMirror to 5.25.0
Change-Id: I47680ba98e1ab39360608aa7a923e7fee7db615e
2017-03-21 15:05:52 +00:00
Translation updater bot a6427ea4c9 Localisation updates from https://translatewiki.net.
Change-Id: I638e2874cd250fdd8ec5e9aaf75666d69250796f
2017-02-24 22:23:06 +01:00
Translation updater bot 9be3cc30ff Localisation updates from https://translatewiki.net.
Change-Id: I9d3f89ca7a6702b06a33e2a18671c38a81c532b9
2016-12-12 22:21:57 +01:00
Translation updater bot f81b41bd70 Localisation updates from https://translatewiki.net.
Change-Id: I5ec3edc69ab95c0dcf47ed9dca43950f56e4f932
2016-10-28 22:37:52 +02:00