From 8e6105fec808fd2f7979232da7b74d0e48b8ee8c Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Thu, 4 May 2017 12:43:36 +0100 Subject: [PATCH] Allow headings in divs Bug: T164453 Change-Id: I986b1b376a592095c94d29a102278d4fde0a621f --- modules/ve-mw/dm/nodes/ve.dm.MWHeadingNode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ve-mw/dm/nodes/ve.dm.MWHeadingNode.js b/modules/ve-mw/dm/nodes/ve.dm.MWHeadingNode.js index a320d1701b..179a428ec3 100644 --- a/modules/ve-mw/dm/nodes/ve.dm.MWHeadingNode.js +++ b/modules/ve-mw/dm/nodes/ve.dm.MWHeadingNode.js @@ -29,7 +29,7 @@ OO.inheritClass( ve.dm.MWHeadingNode, ve.dm.HeadingNode ); ve.dm.MWHeadingNode.static.name = 'mwHeading'; // Headings in wikitext only work in some contexts, they're impossible e.g. in list items -ve.dm.MWHeadingNode.static.suggestedParentNodeTypes = [ 'document', 'tableCell' ]; +ve.dm.MWHeadingNode.static.suggestedParentNodeTypes = [ 'document', 'tableCell', 'div' ]; ve.dm.MWHeadingNode.static.handlesOwnChildren = true;