mediawiki-extensions-Visual.../modules/ve-mw/ce
Marc Ordinas i Llopis 7a33613d23 Use Parsoid's new Cite HTML and CSS
Starting with I21fbbd3247bf7801e5ef9bd5312f95777f4dd6ef, Parsoid
will emit a new HTML for its Cite extension, which enables CSS
styling. In I487095df8a7c4241a14f7b4480360f6774130bec the new
module 'ext.cite.style' is added to the Cite extension to style
this new HTML format.

This patch
* Loads the ext.cite.style module if the Cite extension is
  present.
* Uses the new HTML format for the internal structure of
  reference and reference list nodes, so they are correctly
  styled.

Backwards compatibility: Only new HTML is used internally in VE,
so as long as ext.cite.style can be loaded the new styles will be
used. It does not depend on which format Parsoid returns, so this
patch only depends on the Cite extension patch, not on the Parsoid
one.

Note: The only way I've found of adding a ext.cite.style dependency
only if Cite is present is to register the whole
ext.visualEditor.mwreference module in the
onResourceLoaderRegisterModules hook. Maybe someone can point to
a better way?

Bug: T86782
Change-Id: Ibf333a502d64d2ed6e029221458b7c606554e414
2015-07-06 14:23:18 -07:00
..
annotations ce.MWInternalLinkAnnotation: Remove outdated ../ stripping code 2015-04-20 20:56:37 -07:00
nodes Use Parsoid's new Cite HTML and CSS 2015-07-06 14:23:18 -07:00
styles/nodes Adding minimum width and height to MWAlienExtensionNodes 2015-04-08 18:08:00 +01:00
ve.ce.MWResizableNode.js build: Bump copyright notices to 2015 2015-01-12 20:34:19 -08:00