mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 14:56:20 +00:00
bf7b243627
When editing a new page, or loading an empty page into the editor, the converter generates a paragraph so the document isn't completely empty. This paragraph is then unwrapped on the way out, potentially destroying change markers and generally producing strange HTML output. Mark this paragraph with generated=empty rather than generated=wrapper, and only unwrap it on the way out if it's still empty. This means we cleanly round-trip empty documents (and empty list items and the like), but if the user enters text, we create a paragraph like we're supposed to. Change-Id: Id0241221a67b769445676b833b5741320d99ea5f |
||
---|---|---|
.. | ||
actions | ||
ce | ||
dm | ||
init | ||
test | ||
ui | ||
ve.Action.js | ||
ve.ActionFactory.js | ||
ve.AnnotationSet.js | ||
ve.BranchNode.js | ||
ve.Command.js | ||
ve.CommandRegistry.js | ||
ve.debug.js | ||
ve.Document.js | ||
ve.EventEmitter.js | ||
ve.Factory.js | ||
ve.js | ||
ve.LeafNode.js | ||
ve.Node.js | ||
ve.OrderedHashSet.js | ||
ve.Position.js | ||
ve.Range.js | ||
ve.Registry.js | ||
ve.Surface.js |