mediawiki-extensions-Visual.../modules/ve/ce
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
..
annotations Great Annotation Refactor of 2013 2013-04-08 18:10:16 -07:00
nodes Merge "Initial support for MWBlockImageNode - thumb images with captions :-)" 2013-04-25 23:36:08 +00:00
styles Improve resizable node rendering 2013-04-25 11:45:11 -07:00
ve.ce.Annotation.js Add ve.ce.View as a common base class for ce.Node and ce.Annotation 2013-04-09 12:05:05 -07:00
ve.ce.AnnotationFactory.js Rename ve.NodeFactory to ve.NamedClassFactory 2013-04-09 12:05:05 -07:00
ve.ce.BranchNode.js Avoid rendering content of ve.ce.ContentBranchNode multiple times when only one transaction is applied 2013-04-17 12:16:04 -07:00
ve.ce.ContentBranchNode.js Deduplicate childUpdate events based on transaction and appliedness 2013-04-25 17:08:30 -07:00
ve.ce.Document.js Merge "Inside ve.ce.Document.getRelativeOffset fallback to 'character' mode if 'word' mode returns the same offset as was passed originally" 2013-04-16 22:54:27 +00:00
ve.ce.DomRange.js DomRange makes more sense as a name for this class (cause it is not rangy specific). 2013-03-05 12:18:59 -08:00
ve.ce.FocusableNode.js Allow node focusing 2013-04-18 13:54:37 -07:00
ve.ce.js Allow node relocation 2013-04-19 12:07:18 -07:00
ve.ce.LeafNode.js Store data in LinearData class with an index-value store for objects 2013-03-30 10:06:34 +00:00
ve.ce.Node.js Add ve.ce.View as a common base class for ce.Node and ce.Annotation 2013-04-09 12:05:05 -07:00
ve.ce.NodeFactory.js Rename ve.NodeFactory to ve.NamedClassFactory 2013-04-09 12:05:05 -07:00
ve.ce.RelocatableNode.js Allow node relocation 2013-04-19 12:07:18 -07:00
ve.ce.ResizableNode.js Improve resizable node rendering 2013-04-25 11:45:11 -07:00
ve.ce.Surface.js Fix range translation for surface fragments 2013-04-30 17:08:15 +01:00
ve.ce.SurfaceObserver.js There was no check if anchorNode of selection range is inside an element with CSS class ve-ce-slug. 2013-04-15 21:40:13 +00:00
ve.ce.View.js New static property - renderHtmlAttributes 2013-04-25 14:42:12 -07:00