mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
(bug #41434) Converting format across 2 lists with paragraphs in between fail
Thanks to Roan for suggesting this fix. Change-Id: I754dc34fbd3aaf2bdcb78bf89bfc896b612b4ee6
This commit is contained in:
parent
21ea11c161
commit
f2a83960f8
|
@ -71,6 +71,8 @@ ve.FormatAction.prototype.convert = function ( type, attributes ) {
|
|||
selection = ve.FormatAction.splitAndUnwrap(
|
||||
surfaceModel, prevList, firstInList, lastInList, selection
|
||||
);
|
||||
// Reset
|
||||
prevList = firstInList = lastInList = undefined;
|
||||
}
|
||||
if ( listItem ) {
|
||||
prevList = listItem.getParent();
|
||||
|
|
Loading…
Reference in a new issue