mediawiki-extensions-Visual.../modules/ve-mw/ui
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
..
actions Make save commands only executable when article is saveable 2018-03-22 10:44:30 -05:00
commands doc: Bump copyright year 2018-01-03 17:45:07 +00:00
contextitems Update link contexts with label info from core 2018-06-26 21:16:53 +00:00
datatransferhandlers Add a plain text paste transfer handler for source mode 2018-04-22 12:52:56 -05:00
dialogs ve.ui.MWTemplateDialog: Prevent focus changes in the setup process 2018-07-19 01:43:31 +02:00
elements Add missing mw-content-(dir) class to MWPreviewElement 2018-05-11 16:59:12 +00:00
inspectors Make link annotations more flexible 2018-07-26 15:12:19 +02:00
pages ve.ui.MWTemplatePlaceholderPage: Avoid Firefox rendering issue 2018-07-03 20:13:28 +02:00
styles MWWelcomeDialog: Shrink the background image by 1/3 so the CTAs show 2018-07-05 20:04:57 +02:00
themes Update custom styles for format menu after OOUI changes 2018-04-26 01:48:28 +02:00
tools Fix typo in API call for version number help 2018-05-16 10:23:39 +01:00
widgets build: Enable and make pass no-prototype-builtins 2018-07-06 10:58:18 -07:00
ve.ui.MWCommandRegistry.js doc: Bump copyright year 2018-01-03 17:45:07 +00:00
ve.ui.MWExtensionWindow.js doc: Bump copyright year 2018-01-03 17:45:07 +00:00
ve.ui.MWSequenceRegistry.js doc: Bump copyright year 2018-01-03 17:45:07 +00:00
ve.ui.MWSurface.js Create an MWSurface and move langChange handling there 2018-05-07 11:53:23 +01:00
ve.ui.MWWikitextCommandRegistry.js doc: Bump copyright year 2018-01-03 17:45:07 +00:00
ve.ui.MWWikitextDataTransferHandlerFactory.js doc: Bump copyright year 2018-01-03 17:45:07 +00:00
ve.ui.MWWikitextSequenceRegistry.js doc: Bump copyright year 2018-01-03 17:45:07 +00:00
ve.ui.MWWikitextSurface.js Create an MWSurface and move langChange handling there 2018-05-07 11:53:23 +01:00
ve.ui.MWWikitextTransferRegistry.js doc: Bump copyright year 2018-01-03 17:45:07 +00:00