mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 11:16:51 +00:00
Fixing enter to leave list
Pressing enter in an empty last list item should remove the list item and add a paragraph. Transaction was not being committed. Change-Id: I0b173125d48f629eab923e051648d2036bb8956c
This commit is contained in:
parent
8c0249bb89
commit
c011a5c08f
|
@ -928,6 +928,7 @@ ve.ce.Surface.prototype.handleEnter = function ( e ) {
|
|||
tx = ve.dm.Transaction.newFromInsertion(
|
||||
documentModel, list.getOuterRange().to, emptyParagraph
|
||||
);
|
||||
this.model.change( tx );
|
||||
|
||||
advanceCursor = false;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue