瀏覽代碼

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

Kamil Piechaczek 5 年之前
父節點
當前提交
a40d46ed14
共有 1 個文件被更改,包括 6 次插入0 次删除
  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 );
 				}