mediawiki-extensions-Visual.../modules/ve/ui
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
..
dialogs Rename MWImageNode to MWInlineImageNode (get ready for adding MWBlockImageNode soon) 2013-04-24 16:49:07 -07:00
elements Stack panel, element mixins, cleanup 2013-03-28 12:40:01 -07:00
inspectors Fix range translation for surface fragments 2013-04-30 17:08:15 +01:00
layouts Stack panel, element mixins, cleanup 2013-03-28 12:40:01 -07:00
styles Link inspector fixes 2013-04-24 18:29:55 -07:00
tools Link inspector fixes 2013-04-24 18:29:55 -07:00
widgets Fix link inspector undefined madness 2013-04-25 19:43:39 +00:00
ve.ui.Context.js Link inspector fixes 2013-04-24 18:29:55 -07:00
ve.ui.Dialog.js Dialog button changes 2013-04-10 12:34:52 -07:00
ve.ui.DialogFactory.js UI "Views" refactor 2013-04-18 15:53:50 -07:00
ve.ui.Element.js Doc: Replace "@property @type {Type}" with "@property {Type}". 2013-03-28 21:21:56 +01:00
ve.ui.Frame.js Merge "Initialize iframe for dialog with correct doctype" 2013-04-19 18:53:12 +00:00
ve.ui.Inspector.js UI "Views" refactor 2013-04-18 15:53:50 -07:00
ve.ui.InspectorFactory.js UI "Views" refactor 2013-04-18 15:53:50 -07:00
ve.ui.js Fix ve.ui.get$$'s handling of jQuery selection 2013-04-22 20:36:42 +00:00
ve.ui.Layout.js Layouts, grids and panels 2013-03-15 15:12:56 -07:00
ve.ui.Tool.js Doc: Replace "@property @type {Type}" with "@property {Type}". 2013-03-28 21:21:56 +01:00
ve.ui.Toolbar.js The resurrection 2013-04-22 12:50:23 +01:00
ve.ui.ToolFactory.js Bump copyright notice year range to -2013 over -2012 2013-02-19 15:37:34 -08:00
ve.ui.ViewRegistry.js Link inspector fixes 2013-04-24 18:29:55 -07:00
ve.ui.Widget.js Layouts, grids and panels 2013-03-15 15:12:56 -07:00
ve.ui.Window.js Dialog button changes 2013-04-10 12:34:52 -07:00
ve.ui.WindowSet.js No more confusing boolean argument for closing windows 2013-04-10 12:31:49 -07:00