mediawiki-extensions-Visual.../modules/ve
Ed Sanders d4eef1b879 Fix range translation for surface fragments
Remove all manual changes to SF ranges as these are not
undoable. Instead change translate range to default to
outer expand and build functionality around that behaviour
never changing.

As translate range is always outer I don't think we need to
check for start and end crossing over?

Added more undo tests to assert these selections are maintained
properly, and added the test case to 'update' for when and undo
point is overwritten.

Insert content now results in a selection over the inserted
content. Most usages were expecting this anyway and were
followed up with an adjustRange(-length,0) which is no longer
necessary.

Noticed that the link inspector case was never being triggered
as word boundary was always expanding to at least one char (mainly
for Hanzi selection). This doesn't make much sense as single
spaces get auto selected so removed this functionality.

Split collapseRange out into collapseRangeToStart and
collapseRangeToEnd as this may be required to get the old
behaviour (range moves to end after insert).

Change-Id: I3dc0b4d00d37bad1ca3076a69b41c5f0b3fa0570
2013-04-30 17:08:15 +01:00
..
actions The resurrection 2013-04-22 12:50:23 +01:00
ce Fix range translation for surface fragments 2013-04-30 17:08:15 +01:00
dm Fix range translation for surface fragments 2013-04-30 17:08:15 +01:00
init Merge "Add method to ElementLinearData to get IVStore items in use" 2013-04-26 01:27:39 +00:00
styles Toolbar style fixes 2013-03-15 12:48:49 -07:00
test Fix range translation for surface fragments 2013-04-30 17:08:15 +01:00
ui Fix range translation for surface fragments 2013-04-30 17:08:15 +01:00
ve.Action.js Bump copyright notice year range to -2013 over -2012 2013-02-19 15:37:34 -08:00
ve.ActionFactory.js Bump copyright notice year range to -2013 over -2012 2013-02-19 15:37:34 -08:00
ve.BranchNode.js Bump copyright notice year range to -2013 over -2012 2013-02-19 15:37:34 -08:00
ve.CommandRegistry.js Bump copyright notice year range to -2013 over -2012 2013-02-19 15:37:34 -08:00
ve.debug.js Bump copyright notice year range to -2013 over -2012 2013-02-19 15:37:34 -08:00
ve.Document.js Emit a transact event on the ve.dm.Document when a transaction occurs 2013-03-14 23:35:50 -07:00
ve.EventEmitter.js Fix documentation to place @emits in the correct place 2013-03-25 21:06:05 +00:00
ve.Factory.js Remove more periods 2013-03-20 22:55:50 +00:00
ve.js Mixin tracking 2013-04-24 12:45:53 -07:00
ve.LeafNode.js Bump copyright notice year range to -2013 over -2012 2013-02-19 15:37:34 -08:00
ve.NamedClassFactory.js Rename ve.NodeFactory to ve.NamedClassFactory 2013-04-09 12:05:05 -07:00
ve.Node.js Move common Node/Annotation/MetaItem code into ve.dm.Model 2013-04-09 12:05:05 -07:00
ve.Range.js Clickable inline images 2013-04-08 17:58:46 -07:00
ve.Registry.js Document and clean up events in all the things 2013-03-20 09:58:27 -07:00
ve.Surface.js The resurrection 2013-04-22 12:50:23 +01:00
ve.Trigger.js Bump copyright notice year range to -2013 over -2012 2013-02-19 15:37:34 -08:00
ve.TriggerRegistry.js Bump copyright notice year range to -2013 over -2012 2013-02-19 15:37:34 -08:00