mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-01 17:36:35 +00:00
7a33613d23
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 |
||
---|---|---|
.. | ||
ve.ce.MWAlienExtensionNode.js | ||
ve.ce.MWBlockImageNode.js | ||
ve.ce.MWEntityNode.js | ||
ve.ce.MWExtensionNode.js | ||
ve.ce.MWGalleryNode.js | ||
ve.ce.MWHeadingNode.js | ||
ve.ce.MWImageCaptionNode.js | ||
ve.ce.MWImageNode.js | ||
ve.ce.MWInlineImageNode.js | ||
ve.ce.MWNumberedExternalLinkNode.js | ||
ve.ce.MWPreformattedNode.js | ||
ve.ce.MWReferenceNode.js | ||
ve.ce.MWReferencesListNode.js | ||
ve.ce.MWTableNode.js | ||
ve.ce.MWTransclusionNode.js |