Ed Sanders
9aee6bb5d1
MWTransclusionNode: Comment strange matchTagNames values
...
Change-Id: Ica207be94e5cc888c4454989d2fd6e9b5579a8ea
2019-03-01 16:16:20 +00:00
jenkins-bot
ba5589f801
Merge "ve.init.mw.DesktopArticleTarget: Remove some unnecessary toolbar setup code"
2019-02-28 13:19:30 +00:00
jenkins-bot
d17d9ae768
Merge "Allow page title heading to be selected while editor is active"
2019-02-27 12:50:21 +00:00
jenkins-bot
3ccbc96fa7
Merge "When rendering categories, hide/show catlinks as needed"
2019-02-26 19:52:37 +00:00
David Lynch
b1863f4b25
When rendering categories, hide/show catlinks as needed
...
Catlinks is hidden via a class when there are no non-hidden categories on the
page. We thus need to toggle that class depending on the categories
added/removed from the page.
Bug: T213528
Change-Id: I4067c5721c28041542b9ef2dbc796fbc41b1afe8
2019-02-26 11:26:27 -06:00
Bartosz Dziewoński
73b2defc1e
Update VE core submodule to master (4669eff2b)
...
New changes:
0d28d49e7 ve.transformStyleAttributes: Update browser bug workaround comments
f51b718d0 Localisation updates from https://translatewiki.net .
b0d33a88a Use 'then' for opening/opened promises
40e98a759 Abort opening window for insertion when in readonly mode
744dc8cfa FragmentWindow: Add missing mixins, rename logic in WindowAction
ac5c18052 ve.ui.DiffElement: Don't always target links to new window
Bug: T210142
Change-Id: If07a40fff92fc739b7c6f954c3b89ad3fd7bdfd5
2019-02-26 16:57:17 +01:00
jenkins-bot
86a1995662
Merge "ve.dm.MWGalleryImageNode: Update for Parsoid changes to "broken" images"
2019-02-26 11:51:55 +00:00
jenkins-bot
1c083a362e
Merge "Add more read-only implementations"
2019-02-25 23:59:13 +00:00
jenkins-bot
010c1889b3
Merge "TemplateContext: Filter out empty template descriptions"
2019-02-25 23:16:42 +00:00
jenkins-bot
92ce7f0b99
Merge "MWMetaDialog: Implement read-only mode"
2019-02-25 23:12:47 +00:00
Ed Sanders
403b1f97b1
TemplateContext: Filter out empty template descriptions
...
Change-Id: I1be721c30d92b1da4fc226935a7e0a322f0c4d41
2019-02-25 23:05:51 +00:00
jenkins-bot
99351fa20a
Merge "MWCategoryWidget: Implement setDisabled"
2019-02-25 23:05:23 +00:00
jenkins-bot
f8ffb4d6ce
Merge "MW(Advanced)SettingsPage: Use Array.forEach for metaItemCheckboxes"
2019-02-25 22:57:52 +00:00
Ed Sanders
c04d3da853
Add more read-only implementations
...
* Gallery:
- Disable add/remove image buttons in read-only mode
- Make image list undraggable
* Template: Disable outline controls
* Transclusion: Add/remove buttons on template pages
* MagicLinkNodeInspector: Disable input (e.g. ISBN links)
Bug: T210142
Change-Id: Ibb03ab0bfd55ef5bf7d7558c217c779d7904a134
2019-02-25 20:01:11 +00:00
Ed Sanders
6aa61aefa5
MWMetaDialog: Implement read-only mode
...
Bug: T210142
Change-Id: I7b32668a5daecc04515e9fa13875b278cadfbcce
2019-02-25 12:56:37 +00:00
Ed Sanders
33774758b7
MWCategoryWidget: Implement setDisabled
...
Change-Id: I443f2b55e2f17fb3c182e6cb22e392434513ce6c
2019-02-25 12:56:37 +00:00
Ed Sanders
9c5ec0d0d1
MW(Advanced)SettingsPage: Use Array.forEach for metaItemCheckboxes
...
Change-Id: Id034ae5cba46503370fbf61094b33e6b93569fe9
2019-02-25 12:56:35 +00:00
Ed Sanders
8e3ef8fb7f
Hide label section in MagicLinkNodeContextItem
...
Change-Id: Ifc6cdb2ee15874bfd036b29a6abaffa6e4207728
2019-02-24 13:25:23 +00:00
jenkins-bot
362a0b727c
Merge "ve.ui.MWSaveDialog: Fix fragment links in visual diff too"
2019-02-23 18:26:07 +00:00
jenkins-bot
f7a4e0a80a
Merge "ve.ui.MWSaveDialog: Target links in visual diff to new window"
2019-02-23 18:21:18 +00:00
jenkins-bot
fe70c26ee3
Merge "ApiVisualEditor: Remove red-link cache warming"
2019-02-23 10:36:56 +00:00
Bartosz Dziewoński
043a59a9bd
ve.ui.MWSaveDialog: Fix fragment links in visual diff too
...
Follow-up to a22b9c8ea3
.
Bug: T212554
Change-Id: Id7a16505c11a25f7a61f1394e9d9d1372cbb3d23
2019-02-22 22:51:30 +01:00
Bartosz Dziewoński
ab8ae002af
ve.ui.MWSaveDialog: Target links in visual diff to new window
...
Needed after change I6c988c012730d36d60629864a436e4a1700684c5
in VE core.
Change-Id: I7f0e836bd105a925f8dc62d52f081ee9051765fd
2019-02-22 22:50:55 +01:00
Bartosz Dziewoński
92bb0e557a
ve.init.mw.DesktopArticleTarget: Remove some unnecessary toolbar setup code
...
This code, added in 703b2c2ed0
(2015),
is no longer necessary.
// Disconnect the tool factory listeners so the toolbar
// doesn't start showing new tools as they load, too
// much flickering
this.getToolbar().getToolFactory().off( 'register' );
Introduction of targetLoader (d371014e5d
)
resulted in all tools already being loaded before a Target is
constructed, so this is definitely not needed.
// Disable all the tools
this.getToolbar().updateToolState();
The tools are already disabled because we set the surface to read-only
above, so this does nothing.
Change-Id: Idb162b60891cd1b961e29d2b9f62b74908f17957
2019-02-22 21:03:36 +00:00
jenkins-bot
f1b7225336
Merge "Swap the link-rtl.png and link-ltr.png files"
2019-02-22 20:49:11 +00:00
Ed Sanders
23267264ce
Load VE in read-only mode on protected pages
...
Bug: T53547
Depends-On: Ifaa74be266c048d87f94b4ae2df59cafc7aa155f
Change-Id: Ic90a0b86f45696a8782dec8e3d155ca91107b759
2019-02-22 19:09:23 +00:00
Ed Sanders
18907dde5a
Implementations for read-only mode
...
Depends-On: Ifaa74be266c048d87f94b4ae2df59cafc7aa155f
Change-Id: Iedd1bd9ce17750ad8528c1a053293c4a7321c5de
2019-02-22 18:20:51 +00:00
Ed Sanders
1890530b89
ApiVisualEditor: Remove red-link cache warming
...
Red-link metadata was added to Parsoid 18 months ago.
On long pages evaluating this information is very slow
(hundreds of milliseconds) and completely redundant.
Bug: T64803
Bug: T209078
Change-Id: I5b6c6da588301ed59fb21e1ce930f5b72db48e67
2019-02-22 17:49:11 +00:00
Bartosz Dziewoński
93351892da
ve.dm.MWGalleryImageNode: Update for Parsoid changes to "broken" images
...
Change-Id: I49f4a06de207fbb4dad090f0325068d13bed9810
2019-02-22 18:10:56 +01:00
setian
08e96d7b2e
Swap the link-rtl.png and link-ltr.png files
...
Bug: T216617
Change-Id: I717f36ea94f1c7a016111ce7b32068bf42e05806
2019-02-22 02:38:56 -05:00
Ed Sanders
e21d4fab3f
Update VE core submodule to master (2951e9378)
...
New changes:
202adf904 [BREAKING CHANGE] Unify FragmentInspector/Dialog behaviour
Local changes:
* Update dialogs to use common actions & FragmentWindow
Change-Id: Ib744b8996db48d1ee58bc873120400566c490e88
2019-02-22 01:13:36 +01:00
Bartosz Dziewoński
edc4fe95f6
Allow page title heading to be selected while editor is active
...
People enjoy copy-pasting it, or something.
Bug: T214790
Change-Id: I0d133f601d178f1d1f0175a411a9bcd433ba9419
2019-02-21 21:35:58 +00:00
jenkins-bot
767614f0e1
Merge "ve.init.mw.ArticleTarget: Fix some doc comments"
2019-02-21 12:57:05 +00:00
Bartosz Dziewoński
0b1f445349
ve.init.mw.ArticleTarget: Fix some doc comments
...
Change-Id: I9d8b2553b40d56cf99bcd304c93d866b2a8ba77e
2019-02-20 22:46:39 +01:00
Ed Sanders
332aa1f3d2
build: Update eslint-config-wikimedia to 0.11.0
...
Change-Id: I5a294705eed1760e2d4dde33934d2ffb12e29525
2019-02-20 20:23:43 +00:00
jenkins-bot
8846e65e44
Merge "Support only surfacing part of the document"
2019-02-20 19:06:30 +00:00
Ed Sanders
de2a2ca06f
Improve abstraction around template context description
...
* Separate partDescription from partDescription*s* and use Array#map
* Lookup CE node class of current model, instead of using
ve.ce.MWTransclusionNode hard-coded.
Change-Id: Ief07b865b4c216dc13408b12e8a1354cd2c28dfe
2019-02-19 13:23:14 +00:00
jenkins-bot
557cc0e581
Merge "ve.ui.MWGalleryDialog: Allow normal tools in gallery captions"
2019-02-18 18:47:55 +00:00
jenkins-bot
81c16f6b8a
Merge "Don't try to set dimensions on an error image"
2019-02-15 19:01:32 +00:00
Ed Sanders
e95ec4e24f
Don't try to set dimensions on an error image
...
Bug: T216267
Change-Id: Icbe8cce3e16b2674cb2400f2381f50c71e32f87c
2019-02-15 18:28:03 +00:00
Bartosz Dziewoński
1998a02b8e
ve.init.mw.ProgressBarWidget: Remove 'filter' property for IE 8 & 9
...
Per I7c083ff57db2fce9a06688d5801149253af6f6da this was only needed
for IE 8 & 9, which we don't support now.
Change-Id: I6e093b8ea6f8304ff296bb74297a465dd7334e07
2019-02-15 17:45:22 +01:00
Ed Sanders
3269d53632
Support only surfacing part of the document
...
Bug: T76541
Depends-On: I227a0d704b9b337cff2102d424be9795d6362ed7
Change-Id: Iac71a51c8696434658f24fbb41c8142237bd810e
2019-02-13 19:03:44 +00:00
Ed Sanders
bc02c44d36
rootNode/documentNode -> attachedRootNode
...
Change-Id: I56bb10749cac04e17ace2781b4d693ec5f522e7c
2019-02-13 19:03:36 +00:00
Bartosz Dziewoński
7b2bd6be09
ve.init.mw.MobileArticleTarget: Better match surface top spacing to read mode
...
Using margin instead of padding allows the surface margins to collapse
with the margins of first/last paragraph inside the surface, like they
do in read mode. This fixes the slight jump seen in T210630#4949865.
Bug: T210630
Change-Id: I69d4d4bd9390a1007bc40cda9e78a6b3e7a1bd1d
2019-02-13 13:37:31 +01:00
Bartosz Dziewoński
7fedb7be07
ve.init.mw.MobileArticleTarget: Change "back" tool icon from "<" to "x"
...
Icon name changed from 'previous' to 'close'.
This matches MobileFrontend's wikitext editor and other overlays.
Bug: T210630
Change-Id: I5f588c65887dd2247d3f816959807f943215e0c3
2019-02-13 00:29:24 +01:00
Bartosz Dziewoński
1faf0b00fa
Filter out duplicate categories in NWE preview
...
Use them as object keys, which naturally deduplicates the entries.
Bug: T214811
Change-Id: I6159021b95d78b1a163faebb289578d277ff110d
2019-02-12 19:18:09 +01:00
jenkins-bot
e965868def
Merge "Fix TypeError in MWTocWidget.initFromMetaList"
2019-02-09 18:47:08 +00:00
Chunliang Lyu
4774fbdf5c
Fix TypeError in MWTocWidget.initFromMetaList
...
If a page contains __NOTOC__ magic word, it would break the VisualEditor
with "Uncaught (in promise) TypeError: Right-hand side of 'instanceof' is not
an object at VeUiMWTocWidget.ve.ui.MWTocWidget.initFromMetaList".
The issue seems to be that we removed ve.dm.MWTOCForceMetaItem and
ve.dm.MWTOCDisableMetaItem in commit 57a06a6e75
,
but the code in initFromMetaList still refers to them.
Change-Id: I857cddcc7d4aa73375357ef922591ed94d760166
2019-02-09 19:31:27 +01:00
Roan Kattouw
b15f819fdf
ve.init.mw.Platform: Migrate away from deprecated specialCharacters API
...
Use require('mediawiki.language.specialCharacters') instead of
mw.language.specialCharacters.
Change-Id: I9cf525a1e1aadc12d72284d08b98882b0ab95f5e
2019-02-08 16:59:25 -08:00
jenkins-bot
d2fe2f7f8d
Merge "DesktopArticleTarget: Make the progress bar into a reusable widget"
2019-02-06 22:37:28 +00:00