mediawiki-extensions-Visual.../modules/ve-mw/dm
Arlo Breault 79120fc16c Preserve classes on media wrapper links
Parsoid added a class and, without it, we get selser complaining
about wrappers being modified, similar to T214649.

The "image" class is removed since Parsoid never added it (although it
now has "mw-file-description" for a similar purpose) and the legacy
parser doesn't apply it indiscriminately.

It doesn't seem like VE supports editing the |link= media option; it
just tries to roundtrip what's there and drops it on edit.  The patch
here works with that limitation.

Galleries are found to drop href's, breaking selser, and should be fixed
in a follow up.

Bug: T292657
Bug: T303469
Change-Id: I92359048b42d32fe8a0f2cb79cd348cf5f2c56cc
2022-03-10 10:41:14 -05:00
..
annotations Move var declarations inline 2021-10-13 14:02:31 +01:00
metaitems Merge "Move var declarations inline" 2021-10-22 19:40:49 +00:00
models Preserve classes on media wrapper links 2022-03-10 10:41:14 -05:00
nodes Preserve classes on media wrapper links 2022-03-10 10:41:14 -05:00
.eslintrc.json build: Update eslint-config-wikimedia to 0.16.0 2020-06-02 21:30:00 +01:00
ve.dm.MWWikitextSurface.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.dm.MWWikitextSurfaceFragment.js Add and fix default values in parameter documentation 2022-02-21 13:19:21 +00:00