mediawiki-extensions-Visual.../modules/ve-mw/ui/inspectors
petarpetkovic 50d556e8d2 Make link annotations more flexible
* 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
2018-07-26 15:12:19 +02:00
..
ve.ui.MWAlienExtensionInspector.js doc: Bump copyright year 2018-01-03 17:45:07 +00:00
ve.ui.MWCommentInspector.js doc: Bump copyright year 2018-01-03 17:45:07 +00:00
ve.ui.MWExtensionInspector.js doc: Bump copyright year 2018-01-03 17:45:07 +00:00
ve.ui.MWLanguageVariantInspector.js MWLanguageVariantInspector: Use 'title' config option instead of 'iconTitle' 2018-06-14 22:45:18 +00:00
ve.ui.MWLinkAnnotationInspector.js Make link annotations more flexible 2018-07-26 15:12:19 +02:00
ve.ui.MWLinkNodeInspector.js Update VE core submodule to master (1d341ca7d) 2018-05-18 17:07:28 +02:00
ve.ui.MWLiveExtensionInspector.js doc: Bump copyright year 2018-01-03 17:45:07 +00:00
ve.ui.MWMagicLinkNodeInspector.js doc: Bump copyright year 2018-01-03 17:45:07 +00:00
ve.ui.MWWikitextLinkAnnotationInspector.js NWE: Fix selection when applying async links 2018-04-17 16:33:23 +00:00