https://www.mediawiki.org/wiki/Special:Code/MediaWiki/113790
Revision: 113790
Author: inez
Date: 2012-03-14 00:51:04 +0000 (Wed, 14 Mar 2012)
Log Message:
-----------
Use <h[1-6]> tags for rendering headings (instead of divs)
Modified Paths:
--------------
trunk/extensions/VisualEditor/modules/ve/ce/nodes/ve.ce.HeadingNode.js
Modified: trunk/extensions/VisualEditor/modules/ve/ce/nodes/ve.ce.HeadingNode.js
===================================================================
--- trunk/extensions/VisualEditor/modules/ve/ce/nodes/ve.ce.HeadingNode.js
2012-03-14 00:36:11 UTC (rev 113789)
+++ trunk/extensions/VisualEditor/modules/ve/ce/nodes/ve.ce.HeadingNode.js
2012-03-14 00:51:04 UTC (rev 113790)
@@ -8,7 +8,7 @@
*/
ve.ce.HeadingNode = function( model ) {
// Inheritance
- ve.ce.LeafNode.call( this, model );
+ ve.ce.LeafNode.call( this, model, $( '<h' + model.getElementAttribute(
'level' ) + '>' ) );
// Properties
this.currentLevelHash = null;
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs