Browse Source

The "listStyle" attribute should be removed when renaming listItem to paragraph.

Kamil Piechaczek 5 years ago
parent
commit
a40d46ed14
1 changed files with 6 additions and 0 deletions
  1. 6 0
      packages/ckeditor5-list/src/converters.js

+ 6 - 0
packages/ckeditor5-list/src/converters.js

@@ -611,6 +611,12 @@ export function modelChangePostFixer( model, writer ) {
 					applied = true;
 				}
 
+				if ( item.hasAttribute( 'listStyle' ) ) {
+					writer.removeAttribute( 'listStyle', item );
+
+					applied = true;
+				}
+
 				for ( const innerItem of Array.from( model.createRangeIn( item ) ).filter( e => e.item.is( 'element', 'listItem' ) ) ) {
 					_addListToFix( innerItem.previousPosition );
 				}