Commit graph

13360 commits

Author SHA1 Message Date
C. Scott Ananian 4ff740fe21 Rename LanguageConverter markup fields
Avoid confusion by using `twoway` instead of `bidir`, which could be
confused with the Unicode bidirectional layout algorithm.

Depends-On: Ib59dff22e64f235e30778a5a5b3e525e4fc7fdd3
Change-Id: I7efb35245d48125b167dc0f0ef8f12aa0fff94e5
2017-08-10 10:59:57 -04:00
C. Scott Ananian 9ee713d480 Display LanguageConverter markup in VisualEditor
Implement special node types for language variant markup, so that they
display appropriately based on the currently-selected variant.

(Parsoid uses empty elements to represent this markup, so without this
patch anything in -{ ... }- is alienated and disappears.)

A follow-up patch will implement context items and inspectors to
allow editing these nodes.  This patch is basic "read-only" support.

Depends on I4fcdebc2290ec35ba188f4c2e69d578791fbcd67 in Parsoid to
generate the appropriate markup, but this patch is safe to merge
independently.

Bug: T49411
Change-Id: Ie11e9301d2513bfe4a36036481cee9a047f46d37
2017-07-25 15:26:41 +00:00
Ed Sanders cedf3758d2 Update mediawiki-codesniffer 0.10.0 -> 0.10.1
Change-Id: I40707991ff2931593ae44046369f2d7955ff324e
2017-07-25 15:49:56 +01:00
Translation updater bot ea40fc5f60 Localisation updates from https://translatewiki.net.
Change-Id: I57efbb78a536b94d16f7bfeabf4ee7002b21aa0f
2017-07-24 23:21:05 +02:00
David Lynch 0e973e2539 ce.MWTransclusionNode: make sure model exists before getting its document
Bug: T168932
Change-Id: I8d458888ed0b80205ce17b41f3506410c550630f
2017-07-24 11:31:19 -05:00
jenkins-bot 6dec360659 Merge "Edit image captions in place" 2017-07-24 16:02:06 +00:00
jenkins-bot 23b9f4284e Merge "Fix toolbar position on Special:CollabPad" 2017-07-24 08:49:23 +00:00
Ed Sanders 058e30d29d Fix toolbar position on Special:CollabPad
Adds missing ve-init-mw-desktopArticleTarget-toolbar-open class.

Change-Id: I8579928c8daa224bb9bec8fa5f4360fb3c52c5a1
2017-07-24 09:38:29 +01:00
Translation updater bot 99d18028d9 Localisation updates from https://translatewiki.net.
Change-Id: I2580854b1270433a4ccda9262d16d7741c9b03e1
2017-07-22 23:01:52 +02:00
jenkins-bot 1caaaf0c58 Merge "Update VE core submodule to master (be80158a9)" 2017-07-20 22:22:51 +00:00
Translation updater bot d15eb23806 Localisation updates from https://translatewiki.net.
Change-Id: I5fe6d7383256cf027d4550d81ed5bee28df8b1ce
2017-07-20 23:07:09 +02:00
James D. Forrester e9aa31b9b6 Update VE core submodule to master (be80158a9)
New changes:
e5603a38f Fix indentation of internal list diff spacers

Bug: T171055
Change-Id: I2c646baafd525bfea581e3882ec977885f8c3b65
2017-07-20 12:32:41 -07:00
jenkins-bot 03173b7b2d Merge "ve.ui.MWEducationPopupTool: Don't show if not inside a BarToolGroup" 2017-07-20 17:07:20 +00:00
Timo Tijhof d8a532c87e tests: Remove QUnit.newMwEnvironment from ve.test.utils.mwEnvironment
Two problems:
* At least one caller already calls QUnit.newMwEnvironment(), which means
  it runs twice which is unsupported and breaks If4141df10eae55 in core.
* It assumes the return will contain 'setup' and 'teardown', which
  is internal and also changes with If4141df10eae55 in core.

Using 'setup' and 'teardown' for this within VE-MW is fine.

First attempt is to simply remove it. Uses that already called
QUnit.newMwEnvironment are effectively unchanged. Uses that didn't
and only pass ve.test.utils.mwEnvironment to QUnit.module directly
will now run without core's QUnit.newMwEnvironment() setup/teardown.

If that breaks anything, we can add it back to those tests that actually
need it.

Change-Id: I9ef0368ba58daf1c7dc92d083ae79c108cc27638
2017-07-20 00:15:51 +00:00
Translation updater bot d804a1fc10 Localisation updates from https://translatewiki.net.
Change-Id: Ifbb0c0e37626c04e5085abdda1e8d4a2f60c3c4d
2017-07-19 23:00:11 +02:00
Bartosz Dziewoński 49d5bae106 ve.ui.MWEducationPopupTool: Don't show if not inside a BarToolGroup
The popup gets hideously deformed in other cases. Getting it to work
would probably be difficult. Let's just not show it.

Bug: T170919
Change-Id: If9005e9cdea52fefab981f4c7f05f71fce99f3e8
2017-07-19 22:13:34 +02:00
David Lynch 420037b3ff LinkCache: parsoid element styling, detect selflink fragments
Selflinks with fragments aren't actually selflinks, and so shouldn't be styled
as such.

Bug: T170943
Change-Id: Icb67c81327769d09af6bcfe593843d9dd2bcc33c
2017-07-19 11:54:00 -05:00
Ed Sanders 3180445ce9 Edit image captions in place
Bug: T149753
Depends-On: I6967c9c2b99449e1a4ac003db8213586eda7fbbd
Change-Id: I9baaa8634e9f364e78b3e881113ed8fa917bc76f
2017-07-19 13:01:02 +01:00
jenkins-bot 400e207e5a Merge "Only enable VisualDiff on VE-supported content models" 2017-07-18 22:35:26 +00:00
Ed Sanders 602b8b7782 Only enable VisualDiff on VE-supported content models
Change-Id: I71ea11aaed207c4f67cfd69455b90d87e5f14498
2017-07-18 23:09:04 +01:00
Translation updater bot 623664ec48 Localisation updates from https://translatewiki.net.
Change-Id: I3e607ca45c0b4f650df79ae26d8c01b26a7e9e88
2017-07-18 23:10:28 +02:00
jenkins-bot 13bdd57cdf Merge "Update VE core submodule to master (154f192b3)" 2017-07-18 19:56:23 +00:00
James D. Forrester f9fc275877 Update VE core submodule to master (154f192b3)
New changes:
86913b32a build: Upgrade QUnit to 2.x
af71dc077 tests: Simplify Platform test beforeEach/afterEach logic
951fd9293 build: Upgrade grunt-eslint from 19.0.0 to 20.0.0
e3bb4aa55 Unset surface active node if destroyed
ca5fddf9b tests: Move QUnit fiddles to VE-core-only file

Bug: T170585
Change-Id: I741bc01734922e9df15fbab870000ffaa173110e
2017-07-18 12:31:26 -07:00
jenkins-bot 8baf524006 Merge "Visual diffs: Use new wgDiffOldId/wgDiffNewId" 2017-07-18 15:40:28 +00:00
Bartosz Dziewoński 6123b452da Visual diffs: Use new wgDiffOldId/wgDiffNewId
This also removes an undeclared dependency on mediawiki.Uri.

Bug: T169574
Depends-On: Ic4abaae6e9c74509f7a114a697cdbb78dd1b89b6
Change-Id: I76803da5f1a52171a1af8de1f3e31ea127a2da78
2017-07-18 15:16:03 +00:00
Ed Sanders 835a775a49 build: Upgrade grunt-eslint from 19.0.0 to 20.0.0
Mostly indent and regex fixes.

Change-Id: Iaf9d02363c78cb71deec5c4cab53a05b67f60600
2017-07-18 12:55:33 +01:00
jenkins-bot 1a2de9c8ad Merge "DesktopArticleTarget.init: more explicit no-welcome-on-protected-pages" 2017-07-17 22:48:21 +00:00
David Lynch c7486ae19b DesktopArticleTarget.init: more explicit no-welcome-on-protected-pages
Bug: T138715
Change-Id: I1d1efe7fb3286bbf85ea2a17356dcad1d3346517
2017-07-17 17:17:07 -05:00
L10n-bot 3cd82770e8 Merge "Localisation updates from https://translatewiki.net." 2017-07-17 21:11:56 +00:00
Translation updater bot e91837d952 Localisation updates from https://translatewiki.net.
Change-Id: I63740a790669e5562776d363c06a31270592f79b
2017-07-17 23:11:47 +02:00
Ed Sanders 1efd8c5a61 Add mw-parser-output class to CE document
Bug: T164790
Change-Id: I14ee60dc3e68aad02a740af06f5749e6b5e3329c
2017-07-17 18:04:52 +01:00
jenkins-bot 1333373c3e Merge "Drop local 'template' icon, use 'puzzle' from upstream" 2017-07-17 15:09:28 +00:00
jenkins-bot 0549c55ca3 Merge "Fix wikitext preview in IE and Edge" 2017-07-17 14:29:43 +00:00
James D. Forrester 6b2909a9e5 Update VE core submodule to master (31ed22557)
New changes:
9ba233409 VisualDiff: Use <del> and <ins> on whole paragraphs
8d9068029 Update OOjs UI to v0.22.3
9a0582038 Use white-space:pre-wrap for text changes
d12bb03d7 Avoid deprecated QUnit.asyncTest() in ve.init.sa.Platform.test
a0a86ff48 tests: Avoid deprecated QUnit.push()
91e20c05c Localisation updates from https://translatewiki.net.

Bug: T170114
Bug: T170136
Bug: T170585
Change-Id: I50c45fc9826a21810ebd4f4fed5f7b0acb341d13
2017-07-16 13:49:54 -07:00
Translation updater bot c820c04ee1 Localisation updates from https://translatewiki.net.
Change-Id: Ie47d9a6c3f50275338c980822a90edba6853dd8e
2017-07-14 22:57:02 +02:00
Bartosz Dziewoński 0e00b2c109 Fix wikitext preview in IE and Edge
In Internet Explorer and Edge, NodeList objects do not have the
'forEach' method. However, Array's 'forEach' can be applied to them,
as we do elsewhere in the code.

https://developer.mozilla.org/en-US/docs/Web/API/NodeList/forEach

Bug: T170466
Change-Id: Icb19995e140607d45c47fb6ae8d60ac80b664d02
2017-07-14 15:30:27 +02:00
Translation updater bot 815f9e4acc Localisation updates from https://translatewiki.net.
Change-Id: If9dc517ccbb54150ca209d62bae06df165182429
2017-07-13 23:01:37 +02:00
jenkins-bot 1b6cc864b3 Merge "DesktopArticleTarget.init: only show welcome dialog if page editable" 2017-07-13 18:11:46 +00:00
David Lynch 0e8ef6c307 ce.MWTransclusionNode: make sure model exists before getting its document
Bug: T168932
Change-Id: Idf18839b1f1fae6eb29621f1950d2b52c99e3433
2017-07-13 11:33:38 -05:00
David Lynch a2f8597712 DesktopArticleTarget.init: only show welcome dialog if page editable
"Welcome to wikipedia, anyone can edit, we welcome all improvements. Start
editing!" is a bit out of place when what you'll see after clicking "start
editing" is "you can't edit this page".

Bug: T138715
Change-Id: I9f655a5f12d4e45644bd01631c2d3131375d8e8f
2017-07-12 10:29:54 -05:00
Translation updater bot 48a215b9b3 Localisation updates from https://translatewiki.net.
Change-Id: Ida79312d18b2b56b8d75345fde654c59437dca7b
2017-07-11 23:09:03 +02:00
James D. Forrester 19c95f93a9 Update VE core submodule to master (c9b0d1a23)
New changes:
56e7afa47 Follow-up I93bb2b5dcc: Insert newline if fragment ends in '/paragraph'
70b378298 Workaround for Flow bottom toolbars conflicting with inspectors
c9b0d1a23 Workaround for nested toolbars hack being terrible

Bug: T169076
Bug: T169617
Change-Id: I69dd105d26edcbec8136fbafd337462478ab3349
2017-07-10 15:25:24 -07:00
jenkins-bot 02af298f74 Merge "Update VE core submodule to master (b76c9699b)" 2017-07-10 16:03:21 +00:00
James D. Forrester 6b116701f0 Update VE core submodule to master (b76c9699b)
New changes:
cc1214901 Fix word wrapping CSS in source mode
fed88cc3a Localisation updates from https://translatewiki.net.
d648467a5 DiffElement: hide strikethrough on hover
0428407a0 getSourceText: Fix edge case

Bug: T159271
Bug: T169851
Bug: T170133
Change-Id: I942e3cf4251d6435cadceae92680e8d471966efa
2017-07-10 08:32:44 -07:00
Ed Sanders 0917d27e61 Fix wikitext table insertion
Since Ic8b11d8052 #insertContent puts multiline strings on separate
lines, so to get this to behave correctly, pass in linear data instead.

Bug: T170160
Change-Id: Ie121fce1af46c6834945f4de30bcd9924ee96fd1
2017-07-10 16:16:11 +01:00
Translation updater bot ec3677e001 Localisation updates from https://translatewiki.net.
Change-Id: If34229d9423fb41b99ae7e6d578d247a924d669e
2017-07-08 22:49:24 +02:00
James D. Forrester ace9bb6348 Update VE core submodule to master (5d7b23762)
New changes:
34999f2ce Move linear model -> source text conversion to ElementLinearData
a2ab4fa95 build: Bump grunt clean and stylelint to latest
dab49847a Fix infinite loop in ve.BranchNode#getNodeFromOffset
b4319e29d LanguageInputWidget: optionally suppress directionality input

Change-Id: I800085eb3a5f7332eab356b62a34bfc603a29839
2017-07-07 16:15:27 -07:00
jenkins-bot cc08633012 Merge "build: Bump a couple of devDependencies to latest" 2017-07-06 21:07:41 +00:00
jenkins-bot 1ca4f1453d Merge "Update VE core submodule to master (1934b77e7)" 2017-07-06 21:07:39 +00:00
jenkins-bot 2e62ebe05b Merge "build: Exclude /vendor from stylelint to avoid errors" 2017-07-06 21:07:38 +00:00