mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-16 02:51:50 +00:00
50d556e8d2
* When ve.ui.MWLinkAnnotationInspector is being initialized, internal and external annotation inspectors are hardcoded to new ve.ui.MWInternalLinkAnnotationWidget and new ve.ui.MWExternalLinkAnnotationWidget. Make this creation more flexible by creating these inspectors through a method, which inheriting classes can override. * In ve.ui.MWLinkAnnotationInspector.getAnnotationFromFragment, factor out the creation of link annotations, so overriding classes have the ability to provide different internal and external annotations. * In newFromTitle, static method of MWInternalLinkAnnotation, creation of `element` isn't flexible for reusability with slight changes to attributes passed to the constructor. By factoring out the creation of attributes, inheriting classes can reuse the existing structure and alter the attributes if needed. Bug: T195064 Change-Id: I2037464a7be77783837e9810691c8e372c8197c6 |
||
---|---|---|
.. | ||
actions | ||
commands | ||
contextitems | ||
datatransferhandlers | ||
dialogs | ||
elements | ||
inspectors | ||
pages | ||
styles | ||
themes | ||
tools | ||
widgets | ||
ve.ui.MWCommandRegistry.js | ||
ve.ui.MWExtensionWindow.js | ||
ve.ui.MWSequenceRegistry.js | ||
ve.ui.MWSurface.js | ||
ve.ui.MWWikitextCommandRegistry.js | ||
ve.ui.MWWikitextDataTransferHandlerFactory.js | ||
ve.ui.MWWikitextSequenceRegistry.js | ||
ve.ui.MWWikitextSurface.js | ||
ve.ui.MWWikitextTransferRegistry.js |