mediawiki-extensions-Visual.../modules/ve/dm
Ed Sanders f0e9ec7922 Fix issues with copy-pasting MWTransclusionNodes
ve.dm.MWTransclusionNode
* Implement getClonedElement to remove originalDomElements
  and originalMw. We don't want to put these in the clipboard
  as there is no guarantee they are the rendering of the current
  set of parameters (a refresh may be in progress) and they may
  confuse the converter on the way back in.
  Remove about attribute to prevent about grouping of duplicated
  nodes.
* Set an extra attribute to flag that the outputted DOM doesn't
  have any generated content attached to it that can be stored
  on load.
* Check for said attribute in toDataElement and skip the
  storeGeneratedContents step. This will trigger an async update
  of the generated contents on paste.

ve.ce.Surface
* Call cloneElements before writing to pasteTarget so data in external
  clipboard is stripped of generated contents.

ve.dm.Node
* Only strip data-parsoid as other attributes may be meaningful.

ve.dm.mwExample, ve.dm.Node.test
* Update tests

Bug: 58241
Change-Id: I3e15cc97e94747647078204a0b398e6ac3ec6382
2013-12-12 00:02:11 +00:00
..
annotations Set up node-jscs, pass it, and configure in local Gruntfile 2013-12-06 10:37:27 -08:00
lineardata Move removeHtmlAttribute into ve.dm.Model 2013-12-11 22:02:36 +00:00
metaitems Remove ve.{inheritClass,mixinClass} and use OO instead 2013-10-18 18:58:08 +02:00
nodes Set up node-jscs, pass it, and configure in local Gruntfile 2013-12-06 10:37:27 -08:00
ve.dm.Annotation.js doc: Get rid of 'static' property container in jsduck index 2013-11-19 10:21:39 +00:00
ve.dm.AnnotationFactory.js Remove ve.Factory and ve.Registry and use oojs instead 2013-10-22 19:15:18 +00:00
ve.dm.AnnotationSet.js Remove simpleArray utilities from ve.js and use oojs instead 2013-10-23 03:26:53 +02:00
ve.dm.BranchNode.js Rename @emits to @fires so we're forward compatible with JSDuck 5 2013-10-22 19:11:16 +00:00
ve.dm.Converter.js Set up node-jscs, pass it, and configure in local Gruntfile 2013-12-06 10:37:27 -08:00
ve.dm.DataString.js Remove ve.{inheritClass,mixinClass} and use OO instead 2013-10-18 18:58:08 +02:00
ve.dm.Document.js Set up node-jscs, pass it, and configure in local Gruntfile 2013-12-06 10:37:27 -08:00
ve.dm.DocumentSlice.js Set up node-jscs, pass it, and configure in local Gruntfile 2013-12-06 10:37:27 -08:00
ve.dm.DocumentSynchronizer.js Remove ve.getHash and use getHash from oojs instead 2013-10-22 19:14:23 +00:00
ve.dm.IndexValueStore.js Remove ve.getHash and use getHash from oojs instead 2013-10-22 19:14:23 +00:00
ve.dm.InternalList.js Merge getDataFromDom and getModelFromDom 2013-12-05 21:54:08 +00:00
ve.dm.js Bump copyright notice year range to -2013 over -2012 2013-02-19 15:37:34 -08:00
ve.dm.LeafNode.js Remove ve.{inheritClass,mixinClass} and use OO instead 2013-10-18 18:58:08 +02:00
ve.dm.LinearData.js Remove references to 'document' in LinearData classes 2013-12-10 17:07:44 +00:00
ve.dm.MetaItem.js doc: Get rid of 'static' property container in jsduck index 2013-11-19 10:21:39 +00:00
ve.dm.MetaItemFactory.js Remove ve.Factory and ve.Registry and use oojs instead 2013-10-22 19:15:18 +00:00
ve.dm.MetaList.js Fix spurious MetaList events 2013-12-03 22:48:50 +00:00
ve.dm.Model.js Add recursion to removeHtmlAttribute 2013-12-12 00:02:11 +00:00
ve.dm.ModelRegistry.js Set up node-jscs, pass it, and configure in local Gruntfile 2013-12-06 10:37:27 -08:00
ve.dm.Node.js Fix issues with copy-pasting MWTransclusionNodes 2013-12-12 00:02:11 +00:00
ve.dm.NodeFactory.js Set up node-jscs, pass it, and configure in local Gruntfile 2013-12-06 10:37:27 -08:00
ve.dm.Surface.js Remove SurfaceObserver locking (unused) 2013-10-25 18:29:49 +01:00
ve.dm.SurfaceFragment.js Set up node-jscs, pass it, and configure in local Gruntfile 2013-12-06 10:37:27 -08:00
ve.dm.Transaction.js Set up node-jscs, pass it, and configure in local Gruntfile 2013-12-06 10:37:27 -08:00
ve.dm.TransactionProcessor.js Always use #getDocumentNode. 2013-12-04 22:55:26 +00:00