mediawiki-extensions-Visual.../modules/ve
Catrope d4ea93b872 Add basic support for about groups
About groups are HTML structures like the following:
<div about="#mwt1">....</div>
<span about="#mwt1">...</span>
<div about="#mwt1">...</div>
When about groups are alienated, they are now merged into one alien
node, rather than producing a separate alien node for each sibling.

This is very basic about group handling, because it only works for
groups of directly adjacent siblings (text nodes are permitted in
between, but nothing else) assumes all about groups are aliens (which
is currently true).

* Before processing an element in the DOM->data converter, perform about
  grouping on its children. This temporarily wraps about groups in
  <div data-ve-aboutgroup="value of about attribute">
* Extended createAlien() to handle single nodes as well as wrappers
  holding multiple nodes.
* In the data->DOM converter, temporarily wrap multi-node aliens in
  <div data-ve-multi-child-alien-wrapper="true"> . This makes the rest
  of the algorithm easier.

Change-Id: I2df5f62bc222b570fc11a89fe43d353f8363ead8
2012-11-07 18:13:50 -08:00
..
actions Mapped tab key to indentation action 2012-11-07 16:26:13 -08:00
ce Merge "Mapped tab key to indentation action" 2012-11-08 00:31:10 +00:00
dm Add basic support for about groups 2012-11-07 18:13:50 -08:00
init Merge "(bug 41865) Make the save button available immediately for oldid pages" 2012-11-08 00:05:17 +00:00
test Add basic support for about groups 2012-11-07 18:13:50 -08:00
ui Merge "Replaced command factory with new command class" 2012-11-07 23:51:19 +00:00
ve.Action.js Mapped tab key to indentation action 2012-11-07 16:26:13 -08:00
ve.ActionFactory.js Add ve.Action, ve.ActionFactory, subclasses 2012-10-26 14:44:17 -07:00
ve.AnnotationSet.js Fix UI for annotation API changes 2012-10-12 17:53:42 -07:00
ve.BranchNode.js Fix constructor names; remove redundant hasOwnProperty. 2012-10-08 06:15:20 +02:00
ve.Command.js Replaced command factory with new command class 2012-11-07 15:47:03 -08:00
ve.CommandRegistry.js Mapped tab key to indentation action 2012-11-07 16:26:13 -08:00
ve.debug.js Setup variable ve.debug to true when ve.debug.js is loaded. 2012-10-03 18:02:31 -07:00
ve.Document.js Standards: Fix global variables and pass JSHint. 2012-10-23 00:53:48 +02:00
ve.EventEmitter.js Whitespace and comments 2012-09-17 16:53:03 -07:00
ve.Factory.js Refactored commands into a registry 2012-11-07 15:52:30 -08:00
ve.js Fix ve.batchSplice() to behave in line with docs 2012-10-30 10:05:49 -07:00
ve.LeafNode.js Rename ve_foo_bar back to VeFooBar per discussion 2012-09-06 16:15:55 -07:00
ve.Node.js Rename ve_foo_bar back to VeFooBar per discussion 2012-09-06 16:15:55 -07:00
ve.OrderedHashSet.js Fix constructor names; remove redundant hasOwnProperty. 2012-10-08 06:15:20 +02:00
ve.Position.js Whitespace and comments 2012-09-17 16:53:03 -07:00
ve.Range.js Fix constructor names; remove redundant hasOwnProperty. 2012-10-08 06:15:20 +02:00
ve.Registry.js Refactored commands into a registry 2012-11-07 15:52:30 -08:00
ve.Surface.js Mapped tab key to indentation action 2012-11-07 16:26:13 -08:00