소스 검색

List style is not a format attribute.

Kamil Piechaczek 5 년 전
부모
커밋
b3d5eb04ac
2개의 변경된 파일0개의 추가작업 그리고 11개의 파일을 삭제
  1. 0 5
      packages/ckeditor5-list/src/liststyleediting.js
  2. 0 6
      packages/ckeditor5-list/tests/liststyleediting.js

+ 0 - 5
packages/ckeditor5-list/src/liststyleediting.js

@@ -51,11 +51,6 @@ export default class ListStyleEditing extends Plugin {
 			allowAttributes: [ 'listStyle' ]
 		} );
 
-		// TODO: Is it correct?
-		editor.model.schema.setAttributeProperties( 'listStyle', {
-			isFormatting: true
-		} );
-
 		editor.commands.add( 'listStyle', new ListStyleCommand( editor, DEFAULT_LIST_TYPE ) );
 
 		// Fix list attributes when modifying their nesting levels (the `listIndent` attribute).

+ 0 - 6
packages/ckeditor5-list/tests/liststyleediting.js

@@ -43,12 +43,6 @@ describe( 'ListStyleEditing', () => {
 		it( 'should allow set `listStyle` on the `listItem`', () => {
 			expect( model.schema.checkAttribute( [ '$root', 'listItem' ], 'listStyle' ) ).to.be.true;
 		} );
-
-		it( 'should be marked with a formatting property', () => {
-			expect( model.schema.getAttributeProperties( 'listStyle' ) ).to.include( {
-				isFormatting: true
-			} );
-		} );
 	} );
 
 	describe( 'command', () => {