mediawiki-extensions-Visual.../modules/ve-mw/dm
Bartosz Dziewoński 98a1bb09c0 Centralize Parsoid resource name parsing logic
Let's keep the ugly regexp and the comments about why we do this in a
single place.

This is mostly without behavior changes, with three exceptions:
* ve.dm.MWImageModel#attachScalable now passes a title with spaces
  instead of underscores to the Scalable (this doesn't matter because
  it's normalized to use spaces later anyway).
* ve.dm.MWImageNode#getFilename now returns a title with spaces
  instead of underscores. This is used in some API queries and when
  rendering thumbnails for missing files, and this format is actually
  more correct for both of these.
* ve.dm.MWTemplateModel now URI-decodes the template title. This
  actually fixes a bug where trying to edit a template transclusion
  whose title contains a '?' would throw an exception about invalid
  title.

Also, clarify that the return value of ve.dm.MWImageModel#getFilename
and ve.dm.MWImageNode#getFilename is different :(

Change-Id: I8e09015cea82308017ed925ec755b7231518126e
2018-02-28 03:01:05 +01:00
..
annotations Centralize Parsoid resource name parsing logic 2018-02-28 03:01:05 +01:00
metaitems Centralize Parsoid resource name parsing logic 2018-02-28 03:01:05 +01:00
models Centralize Parsoid resource name parsing logic 2018-02-28 03:01:05 +01:00
nodes Centralize Parsoid resource name parsing logic 2018-02-28 03:01:05 +01:00
ve.dm.MWWikitextSurface.js Always set sourceMode=true on dm.MWWikitextSurface 2018-02-27 12:19:06 +00:00
ve.dm.MWWikitextSurfaceFragment.js doc: Bump copyright year 2018-01-03 17:45:07 +00:00