mediawiki-extensions-Visual.../modules/ve-mw/dm
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
..
annotations Make link annotations more flexible 2018-07-26 15:12:19 +02:00
metaitems Update VE core submodule to master (a1fd90540) 2018-06-20 12:53:43 +02:00
models Simplify conversion of images 2018-06-05 13:05:40 +01:00
nodes ve.dm.MWInlineImageNode: Fix undefined data-mw in toDomElements output 2018-07-18 16:46:07 +05:30
ve.dm.MWWikitextSurface.js Always set sourceMode=true on dm.MWWikitextSurface 2018-02-27 12:19:06 +00:00
ve.dm.MWWikitextSurfaceFragment.js Only resolve wikitext promise when progress dialog has closed 2018-04-17 16:33:14 +00:00