|
@@ -96,7 +96,8 @@ export function modelViewRemove( evt, data, consumable, conversionApi ) {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- const viewItem = conversionApi.mapper.toViewElement( data.item );
|
|
|
|
|
|
|
+ const viewPosition = conversionApi.mapper.toViewPosition( data.sourcePosition );
|
|
|
|
|
+ const viewItem = viewPosition.nodeAfter.is( 'li' ) ? viewPosition.nodeAfter : viewPosition.nodeAfter.getChild( 0 );
|
|
|
|
|
|
|
|
// 1. Break the container after and before the list item.
|
|
// 1. Break the container after and before the list item.
|
|
|
// This will create a view list with one view list item -- the one that changed type.
|
|
// This will create a view list with one view list item -- the one that changed type.
|