Commit graph

623 commits

Author SHA1 Message Date
jenkins-bot 466fca0ec0 Merge "Load CodeMirror with VE always" 2018-04-25 16:04:39 +00:00
Niharika Kohli 7c848abd8d Load CodeMirror with VE always
This patch makes Codemirror on VE independent of the beta feature,
making it always load.

This is a first step to graduating CodeMirror out of beta.

Bug: T191923
Change-Id: Ide794e8f986d3f0455ff282819c71d9144dd75db
2018-04-23 20:54:43 +00:00
Translation updater bot 78d5fd1623 Localisation updates from https://translatewiki.net.
Change-Id: I85ba6a45328d9e269811aacefdc0c65e01ce7f69
2018-04-22 22:21:37 +02:00
jenkins-bot f7162e26f9 Merge "Never load ext.CodeMirror on RTL pages" 2018-04-19 20:35:59 +00:00
Translation updater bot 890d5fd516 Localisation updates from https://translatewiki.net.
Change-Id: I73ec7eb586ffc25d6ae04f15e15b5ffb685d0e33
2018-04-19 22:13:39 +02:00
Ed Sanders d4d92f921f Never load ext.CodeMirror on RTL pages
This does not affect the VE integration, which
does support RTL.

Bug: T191923
Change-Id: I817498157bcc3ff0b92d1ee0e9cf9fc96be83d2f
2018-04-19 16:01:57 +00:00
jenkins-bot 6e2bdac5d2 Merge "Remove 'Try syntax highlighting' popup for all users" 2018-04-18 21:02:25 +00:00
Translation updater bot 09dca5a16e Localisation updates from https://translatewiki.net.
Change-Id: I48135b55cace69b51e66b2ada0feac3acf65441b
2018-04-18 22:10:35 +02:00
Ed Sanders dcf28f37a1 Use CM API for setting document direction
Bug: T191923
Change-Id: I68ee7de8ff2d26044fc8a71a04ade65b5d4420c8
2018-04-16 16:53:29 +01:00
Ed Sanders d428893b80 Merge selectors for VE & CM surfaces, and add 'hyphens' rule
Keep all our font rule settings in one place to make it
easier to keep them in sync. Also add a rule for 'hyphens' in
case the browser default has changed.

Bug: T192019
Change-Id: I2c27e5075a9bc6aaed9fe048d163f57976708357
2018-04-16 16:43:35 +01:00
libraryupgrader 9bba5e4fde build: Updating mediawiki/mediawiki-codesniffer to 18.0.0
Change-Id: Iafaebb579f5afa7cd804d88928f6343ddd792560
2018-04-13 23:25:21 +00:00
MusikAnimal 7d99bbefde Remove 'Try syntax highlighting' popup for all users
A Node script was used to remove the now unused i18n messages.
This same script sorts the messages alphabetically, so it looks
like some unrelated messages were changed, but they weren't.

Bug: T191297
Change-Id: I69cce06133c1d055d31d12ebc8408123c187b574
2018-04-12 18:22:31 -04:00
jenkins-bot 6d9bc58727 Merge "Fix some small edge cases with font matching" 2018-04-12 16:12:00 +00:00
Translation updater bot f266e76312 Localisation updates from https://translatewiki.net.
Change-Id: Ifdd2eedac39c1cec7e3471589e1204e6b15adb35
2018-04-08 22:29:46 +02:00
Translation updater bot a0fc1ff8e6 Localisation updates from https://translatewiki.net.
Change-Id: Id3016f6a0b13b3f68082a5114b3a89d540f84bc9
2018-04-06 22:20:08 +02:00
Translation updater bot ae945770a3 Localisation updates from https://translatewiki.net.
Change-Id: I106de04a955f54095791b82511acfe446b9ac765
2018-04-03 09:50:49 +02:00
jenkins-bot fb20072a4a Merge "Unbreak VE integration in IE11" 2018-04-02 15:58:24 +00:00
Translation updater bot 74e645b073 Localisation updates from https://translatewiki.net.
Change-Id: I0ec030327e2210961a8a786eea24fedc6de441a1
2018-04-02 09:48:21 +02:00
Translation updater bot 7700d53ea5 Localisation updates from https://translatewiki.net.
Change-Id: Id3f19cafb9ebd76777a1739240ec7fed89b6f080
2018-04-01 09:37:56 +02:00
jenkins-bot 6772e087e5 Merge "Tests for MediaWiki CodeMirror syntax highlighting" 2018-03-29 23:17:39 +00:00
libraryupgrader c3e44ff1f3 build: Updating mediawiki/mediawiki-codesniffer to 17.0.0
Change-Id: If28427103c876da0e4e0219e8e896fdccfbee481
2018-03-29 00:50:16 +00:00
Ed Sanders c09151d659 Fix some small edge cases with font matching
Change-Id: I6e2df8e13f19a29a3a80fbbfc0ed5332c33eb584
2018-03-27 22:35:00 +01:00
Ed Sanders 4f2ace3ad9 Unbreak VE integration in IE11
Element.remove is not supported in IE11 so use
parentNode.removeChild.

Change-Id: Iacfdc2fb563d5ed168dc691ecf439e60e94d4e2a
2018-03-27 21:46:00 +01:00
Translation updater bot 50b13d115c Localisation updates from https://translatewiki.net.
Change-Id: Ibf446c87782a1f5fe716583151e0623546346b6b
2018-03-27 22:09:21 +02:00
Translation updater bot dfb9cf60ee Localisation updates from https://translatewiki.net.
Change-Id: I9d65465e95665061ae0f531019f45ed149d2fe0b
2018-03-23 22:12:59 +01:00
Ed Sanders 6d92dd818d Use upstream OOUI icons for WikiEditor toolbar
Also uses upstream tool-active styling, which was
based on cm-on.svg.

Depends-On: I3e6f65f6f290778d3fbfa22f5d212c26fee12a86
Change-Id: Ib42be9f8b87efe1387eb5c77698fd2f0af0a673d
2018-03-23 13:43:30 +00:00
MusikAnimal 4d2783eb3e Tests for MediaWiki CodeMirror syntax highlighting
Bug: T169592
Change-Id: I0750d3a320af5451f847e6062f82523fb18f12bc
2018-03-20 16:27:55 -04:00
jenkins-bot 0e4bb8feb6 Merge "Don't match // as protocol unless used in a link" 2018-03-15 23:51:21 +00:00
MusikAnimal 5c8eb20c33 Don't match // as protocol unless used in a link
Bug: https://phabricator.wikimedia.org/T185069
Change-Id: I2111e7c7ae599c5aed2f5ae779bc3d7b2d8ce82a
2018-03-13 22:51:35 -04:00
MusikAnimal ccbce0e69d Highlight void tags and invalid self-closing tags correctly
Bug: T170238
Change-Id: Ice1bdae3d16cf365da14c6df0e8d91d2b914e074
2018-03-13 22:18:59 -04:00
jenkins-bot b7a201e2f0 Merge "Fix highlighting of table headers on single text row" 2018-03-13 22:39:01 +00:00
MusikAnimal 62a53c5905 Fix highlighting of table headers on single text row
Bug: https://phabricator.wikimedia.org/T179534
Change-Id: I6e353d52af849678da63624e456ec2a82c680df4
2018-03-13 18:23:16 -04:00
Translation updater bot 780e941d6c Localisation updates from https://translatewiki.net.
Change-Id: Iff5f2308e3a1ffa0f162074bd356144b029fd3f9
2018-03-10 22:14:00 +01:00
jenkins-bot 25302e1be3 Merge "Add <translate> as a permitted tag" 2018-03-09 21:59:26 +00:00
libraryupgrader cc67737c78 build: Updating jakub-onderka/php-parallel-lint to 1.0.0
Change-Id: Ia85026e0db1f60257a36c39e542c6ded952f6925
2018-03-09 06:19:31 +00:00
Translation updater bot 91981313e3 Localisation updates from https://translatewiki.net.
Change-Id: I7ca314f66bb1da60c40c1d996a878eb1a37c7d0a
2018-03-08 22:45:36 +01:00
Ed Sanders 1dc74c66fe Avoid using bold with VE+CodeMirror
We can't guarantee the preserve glyph width, e.g.
on Firefox with Chinese characters.

Bug: T184467
Change-Id: I6fc92fcd034bda3d9a94749935aae03c8373f7c5
2018-03-07 19:56:51 +00:00
jenkins-bot c2e1f91c7d Merge "VE: Use different approach for transparent text issue" 2018-03-06 16:35:15 +00:00
MusikAnimal 980f3d2848 Add <translate> as a permitted tag
Bug: T172456
Change-Id: I2315053b79bfd2dd009a98c0fe824ccdbcaf431c
2018-03-05 15:01:45 -05:00
Translation updater bot 3fc2bc58bc Localisation updates from https://translatewiki.net.
Change-Id: I2315053b79bfd2dd009a98c0fe824ccdbcaf421c
2018-03-01 22:41:43 +01:00
Ed Sanders 06af670325 VE: Use different approach for transparent text issue
Deferring the insertions can lead to sync issues, so use
a different technique to selective refresh the CodeMirror
view when the height changes.

This reverts commit 8e3d96f75f.

Bug: T188473
Bug: T185184
Change-Id: I502501cc0325db64f29a67716306733859d102a9
2018-02-28 12:38:44 +00:00
Ed Sanders 9c59f7ede5 Remove unused mode files
We currently only provide modules for
* wikitext
* css
* javascript
* xml
* htmlmixed
* clike
* php

Change-Id: If47827f61043bd2c474ec160af56f651b3cf3af0
2018-02-28 12:24:30 +00:00
Ed Sanders 48e37ce2fc Remove themes, keymaps and addons
We don't support these

Change-Id: Ib237e5b885b8a7ac9fdba36efb1c666c8cbb2619
2018-02-28 12:24:13 +00:00
Ed Sanders 2614d071ad Update CodeMirror to 5.35.0
Change-Id: I4da7497600189b6c87c9fcb829f7876c98bf4929
2018-02-28 12:14:29 +00:00
Ed Sanders cc611f4254 TextSelection: Make chainable methods chainable
Bug: T188119
Change-Id: I40030e1cbd3bc77a0db424d38cd61815deac2e12
2018-02-26 11:47:43 +00:00
jenkins-bot b0ee15034a Merge "VE: Match whitespace rendering of ve.ce.TextNode" 2018-02-25 22:40:46 +00:00
Translation updater bot 0d8e595164 Localisation updates from https://translatewiki.net.
Change-Id: I121efe552a63b7173fe451aacefa18c3c0331756
2018-02-25 22:33:50 +01:00
jenkins-bot 348949d15b Merge "Defer update of CM surface to avoid invisible text" 2018-02-25 20:58:45 +00:00
Ed Sanders 8e3d96f75f Defer update of CM surface to avoid invisible text
Bug: T185184
Change-Id: I0b115d892ab322911c895dda030b77f35cc9195a
2018-02-25 18:05:19 +00:00
Ed Sanders 8b27277b20 VE: Refresh rendering after surfaceReady
Bug: T188215
Change-Id: I4c53f554d8091aa71ce59fe04857b588209639d3
2018-02-25 17:58:32 +00:00