diff --git a/src/converters.js b/src/converters.js index 2b80623..c0661a6 100644 --- a/src/converters.js +++ b/src/converters.js @@ -420,7 +420,7 @@ export function cleanList( evt, data, conversionApi ) { for ( const child of children ) { if ( !child.is( 'li' ) ) { - child.remove(); + child._remove(); } } } @@ -447,7 +447,7 @@ export function cleanListItem( evt, data, conversionApi ) { for ( const child of children ) { if ( foundList && !child.is( 'ul' ) && !child.is( 'ol' ) ) { - child.remove(); + child._remove(); } if ( child.is( 'text' ) ) { @@ -779,7 +779,7 @@ export function modelIndentPasteFixer( evt, [ content, selection ] ) { if ( indentChange > 0 ) { // Adjust indent of all "first" list items in inserted data. while ( item && item.is( 'listItem' ) ) { - item.setAttribute( 'indent', item.getAttribute( 'indent' ) + indentChange ); + item._setAttribute( 'indent', item.getAttribute( 'indent' ) + indentChange ); item = item.nextSibling; } @@ -798,7 +798,7 @@ function generateLiInUl( modelItem, conversionApi ) { const viewItem = createViewListItemElement(); const viewList = viewWriter.createContainerElement( listType, null ); - viewList.appendChildren( viewItem ); + viewList._appendChildren( viewItem ); mapper.bindElements( modelItem, viewItem ); diff --git a/tests/listengine.js b/tests/listengine.js index 5af3df6..85f989e 100644 --- a/tests/listengine.js +++ b/tests/listengine.js @@ -3390,7 +3390,7 @@ describe( 'ListEngine', () => { const uiElement = new ViewUIElement( 'span' ); // Append ui element at the end of first
  • . - viewDoc.getRoot().getChild( 0 ).getChild( 0 ).appendChildren( [ uiElement ] ); + viewDoc.getRoot().getChild( 0 ).getChild( 0 )._appendChildren( [ uiElement ] ); expect( getViewData( editor.editing.view, { withoutSelection: true } ) ) .to.equal( '' ); @@ -3412,7 +3412,7 @@ describe( 'ListEngine', () => { const uiElement = new ViewUIElement( 'span' ); // Append ui element at the end of first
  • . - viewRoot.getChild( 0 ).getChild( 0 ).appendChildren( [ uiElement ] ); + viewRoot.getChild( 0 ).getChild( 0 )._appendChildren( [ uiElement ] ); expect( getViewData( editor.editing.view, { withoutSelection: true } ) ) .to.equal( '' ); @@ -3440,7 +3440,7 @@ describe( 'ListEngine', () => { it( 'ui element before