diff --git a/modules/ve/ce/styles/ve.ce.Node.css b/modules/ve/ce/styles/ve.ce.Node.css index c81db9ff29..3bd33b938d 100644 --- a/modules/ve/ce/styles/ve.ce.Node.css +++ b/modules/ve/ce/styles/ve.ce.Node.css @@ -61,12 +61,8 @@ display: inline; } -.ve-ce-slug { - /* - display: inline-block; - margin-right: -1px; - width: 1px; - */ +.ve-ce-slugBlock { + display: block; } .ve-ce-branchNode h1:empty:before, diff --git a/modules/ve/ce/ve.ce.BranchNode.js b/modules/ve/ce/ve.ce.BranchNode.js index d23c35d80c..48456111e7 100644 --- a/modules/ve/ce/ve.ce.BranchNode.js +++ b/modules/ve/ce/ve.ce.BranchNode.js @@ -61,8 +61,6 @@ ve.mixinClass( ve.ce.BranchNode, ve.BranchNode ); /** * Inline slug template. * - * TODO: Consider adding a CSS class. - * * @static * @property * @type {jQuery} @@ -71,16 +69,14 @@ ve.ce.BranchNode.$inlineSlugTemplate = $( '' ) .html( $.browser.msie ? ' ' : '' ); /** - * Inline slug template. - * - * TODO: Consider adding a CSS class. + * Block slug template. * * @static * @property * @type {jQuery} */ ve.ce.BranchNode.$blockSlugTemplate = - ve.ce.BranchNode.$inlineSlugTemplate.clone().css( 'display', 'block' ); + ve.ce.BranchNode.$inlineSlugTemplate.clone().addClass( 've-ce-slugBlock' ); /* Static Methods */