mediawiki-extensions-Visual.../modules/ve/dm
Ed Sanders 7cec9ae04a Rich paste
Allow pasting of rich (HTML) content.

ve.ce.Surface
* Use a sliced document clone for converting to DM HTML (copy)
* Add full context to pasteTarget before copying
* Add ve-pasteProtect class to spans to prevent them being dropped
* Implement external paste by converting HTML to data and inserting
  with newFromDocumentInsertion
* Remove clipboard key placeholder after read so they aren't picked
  up by rich paste. Hash no longer includes the placeholder.
* Detect the corruption of important spans and fallback to clipboard
  data HTML if available.

ve.dm.LinearData
* Add clone method for copy

ve.dm.ElementLinearData
* Add compareUnannotated for use by context diffing.
* Add sanitize method for cleaning data according to a set of rules.

ve.dm.Transaction
* Add range parameter for inserting a range of a document only,
  e.g. stripping the paste context.

ve.dm.Document
* Implement sliced document clone creation so that DM HTML
  is generated correctly in onCopy

ve.dm.DocumentSlice
* Replaces LinearDataSlice. Now has two ranges for balanced data
  and data with a full context.

ve.init.Target.js
* Define default, loose, paste rules (just remove aliens).

ve.init.mw.ViewPageTarget
* Define strict MW paste rules:
  + no links, spans, underlines
  + no images, divs, aliens
  + strip extra HTML attribues

ve.init.sa.Target, ve.init.mw.ViewPageTarget, ve.ui.Surface
* Pass through and store paste rules.

Bug: 41193
Bug: 48170
Bug: 50128
Bug: 53828
Change-Id: I38d63e31ee3e3ee11707e3fffed5174e1d633b42
2013-11-26 18:23:12 +00:00
..
annotations Get rid of dmRendering hack in ve.ce.MWInternalLinkAnnotation 2013-10-28 15:49:08 +00:00
lineardata Rich paste 2013-11-26 18:23:12 +00:00
metaitems Remove ve.{inheritClass,mixinClass} and use OO instead 2013-10-18 18:58:08 +02:00
nodes doc: Adding missing @static to a static dm.GeneratedContentNode method 2013-10-23 22:08:47 +02: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 Store inner whitespace of the body and compare it on conversion 2013-10-31 17:09:06 +01: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 Rich paste 2013-11-26 18:23:12 +00:00
ve.dm.DocumentSlice.js Rich paste 2013-11-26 18:23:12 +00: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 Resolve rendered URLs according to the provided <base> 2013-10-28 15:16:05 +00:00
ve.dm.js
ve.dm.LeafNode.js Remove ve.{inheritClass,mixinClass} and use OO instead 2013-10-18 18:58:08 +02:00
ve.dm.LinearData.js Rich paste 2013-11-26 18:23:12 +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 Document the fact that ve.dm.MetaItem#replaceWith takes a plain object 2013-11-18 14:07:05 +05:30
ve.dm.Model.js doc: Get rid of 'static' property container in jsduck index 2013-11-19 10:21:39 +00:00
ve.dm.ModelRegistry.js dm.ModelRegistry: Fix documentation for #addType 2013-10-31 01:30:07 +01:00
ve.dm.Node.js Rich paste 2013-11-26 18:23:12 +00:00
ve.dm.NodeFactory.js Remove ve.Factory and ve.Registry and use oojs instead 2013-10-22 19:15:18 +00:00
ve.dm.Surface.js Remove SurfaceObserver locking (unused) 2013-10-25 18:29:49 +01:00
ve.dm.SurfaceFragment.js .change( null, foo ) -> .setSelection( foo ) 2013-10-25 18:29:49 +01:00
ve.dm.Transaction.js Rich paste 2013-11-26 18:23:12 +00:00
ve.dm.TransactionProcessor.js Get rid of 'reversed' flag on transactions 2013-10-02 19:37:08 -07:00