mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 18:39:52 +00:00
Merge "Let's not put slugs around lists because there is no such need."
This commit is contained in:
commit
06551322ea
|
@ -160,7 +160,10 @@ ve.ce.Node.prototype.isContent = function () {
|
|||
* @returns {boolean} Whether the node can have a slug before it
|
||||
*/
|
||||
ve.ce.Node.prototype.canHaveSlugBefore = function () {
|
||||
return !this.canContainContent() && this.getParentNodeTypes() === null && this.type !== 'text';
|
||||
return !this.canContainContent() &&
|
||||
this.getParentNodeTypes() === null &&
|
||||
this.type !== 'text' &&
|
||||
this.type !== 'list';
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue