mediawiki-extensions-Visual.../modules/ve
Roan Kattouw 93b645a453 Make autonumbered external links inspectable
When the target of an autonumbered link is changed to a URL, it's kept
as an autonumbered link and its target is updated. When the target is
changed to a MediaWiki page, the autonumbered link is removed and
replaced with an internal link with the text set to the target.
So for instance, if you inspect [http://www.example.com] and change
its target to "Foo", the result will be [[Foo]].

The core of this commit adds support for inspecting nodes to
ve.ui.LinkInspector. This support should probably move into a
class in between AnnotationInspector and LinkInspector, perhaps
called HybridInspector or something, but I'm deferring that for now.

LinkInspector allows changes to inspected nodes to be reflected either
as attribute changes on the node, or by replacing the node with something
else. MWLinkInspector uses this feature to replace the autonumbered
external link node with an internal link annotation when the target is
set to an external link.

Bug: 53505
Change-Id: Icb404af84c24574438e4de3ef05bbd1993b593f7
2013-11-30 00:14:41 -08:00
..
ce Merge "Revert model to use simple UTF-16 code units" 2013-11-26 22:53:06 +00:00
dm Merge changes If814e178,Id133431e,I38d63e31,I16d575b6 2013-11-26 21:07:46 +00:00
init Plain text paste with paste special 2013-11-26 18:23:58 +00:00
test Merge "Revert model to use simple UTF-16 code units" 2013-11-26 22:53:06 +00:00
ui Make autonumbered external links inspectable 2013-11-30 00:14:41 -08:00
ve.BranchNode.js
ve.debug.js
ve.Document.js Use OO.EventEmitter instead of ve.EventEmitter 2013-10-22 16:57:33 +00:00
ve.EventSequencer.js Test Surface with IME-like event sequences 2013-11-25 16:49:49 +00:00
ve.js Revert model to use simple UTF-16 code units 2013-11-26 19:38:14 +00:00
ve.LeafNode.js
ve.Node.js Rename @emits to @fires so we're forward compatible with JSDuck 5 2013-10-22 19:11:16 +00:00
ve.Range.js doc: Fix existing violations detected by JSDuck 5 2013-11-19 16:10:25 +05:30
ve.track.js ve.track: add topic-based analytic event subscription 2013-10-16 10:03:27 -07:00