mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-01 17:36:35 +00:00
e148234c29
Moved annotation rendering from ce.Textnode into the new ce.ContentBranchNode class. This allows us to render annotations that span across multiple nodes. * Add ce.ContentBranchNode, inheriting ce.BranchNode * Make ce.{Paragraph,Heading,Preformatted}Node inherit ce.ContentBranchNode * Made ce.ContentBranchNode render its child nodes with anntations, using .getAnnotatedHtml() on the child nodes * Put a default implementation for .getAnnotatedHtml() in ce.LeafNode * Override this in ce.TextNode to do escaping and whitespace handling * Removed rendering code from ce.TextNode (this.$ is now unused there) * Removed ce.TextNode.onUpdate() and ce.BranchNode.clean(), now unneeded * Have ce.BranchNode propagate update events from children, so ce.ContentBranchNode can rerender when its children change * Update tests, add test case for escaping of &<>'" Change-Id: I4600e984b287c6ff9267f4281d2f09bab9e1ad95 |
||
---|---|---|
.. | ||
ve.ce.AlienBlockNode.js | ||
ve.ce.AlienInlineNode.js | ||
ve.ce.AlienNode.js | ||
ve.ce.BreakNode.js | ||
ve.ce.CenterNode.js | ||
ve.ce.DefinitionListItemNode.js | ||
ve.ce.DefinitionListNode.js | ||
ve.ce.DocumentNode.js | ||
ve.ce.HeadingNode.js | ||
ve.ce.ImageNode.js | ||
ve.ce.ListItemNode.js | ||
ve.ce.ListNode.js | ||
ve.ce.MetaBlockNode.js | ||
ve.ce.MetaInlineNode.js | ||
ve.ce.MWEntityNode.js | ||
ve.ce.ParagraphNode.js | ||
ve.ce.PreformattedNode.js | ||
ve.ce.TableCellNode.js | ||
ve.ce.TableNode.js | ||
ve.ce.TableRowNode.js | ||
ve.ce.TableSectionNode.js | ||
ve.ce.TextNode.js |