Ver Fonte

Changed: Removed unnecessary condition.

Szymon Cofalik há 8 anos atrás
pai
commit
b7158bb99b

+ 0 - 4
packages/ckeditor5-autoformat/src/blockautoformatengine.js

@@ -68,10 +68,6 @@ export default class BlockAutoformatEngine {
 
 
 			for ( const entry of changes ) {
 			for ( const entry of changes ) {
 				if ( entry.type == 'insert' && entry.name == '$text' ) {
 				if ( entry.type == 'insert' && entry.name == '$text' ) {
-					if ( entry.position.root.rootName == '$graveyard' ) {
-						continue;
-					}
-
 					const item = entry.position.textNode || entry.position.nodeAfter;
 					const item = entry.position.textNode || entry.position.nodeAfter;
 
 
 					if ( !item.parent.is( 'paragraph' ) ) {
 					if ( !item.parent.is( 'paragraph' ) ) {