8
0
Просмотр исходного кода

Remove default priority from converters.

Maciej Gołaszewski 7 лет назад
Родитель
Сommit
9b5b537980

+ 5 - 5
packages/ckeditor5-table/src/converters/downcast.js

@@ -74,7 +74,7 @@ export function downcastInsertTable( options = {} ) {
 
 		conversionApi.mapper.bindElements( table, asWidget ? tableWidget : figureElement );
 		conversionApi.writer.insert( viewPosition, asWidget ? tableWidget : figureElement );
-	}, { priority: 'normal' } );
+	} );
 }
 
 /**
@@ -117,7 +117,7 @@ export function downcastInsertRow( options = {} ) {
 
 			createViewTableCellElement( tableWalkerValue, tableAttributes, insertPosition, conversionApi, options );
 		}
-	}, { priority: 'normal' } );
+	} );
 }
 
 /**
@@ -159,7 +159,7 @@ export function downcastInsertCell( options = {} ) {
 				return;
 			}
 		}
-	}, { priority: 'normal' } );
+	} );
 }
 
 /**
@@ -236,7 +236,7 @@ export function downcastTableHeadingRowsChange( options = {} ) {
 		function isBetween( index, lower, upper ) {
 			return index > lower && index < upper;
 		}
-	}, { priority: 'normal' } );
+	} );
 }
 
 /**
@@ -274,7 +274,7 @@ export function downcastTableHeadingColumnsChange( options = {} ) {
 
 			renameViewTableCellIfRequired( tableWalkerValue, tableAttributes, conversionApi, asWidget );
 		}
-	}, { priority: 'normal' } );
+	} );
 }
 
 /**

+ 2 - 2
packages/ckeditor5-table/src/converters/upcasttable.js

@@ -89,7 +89,7 @@ export default function upcastTable() {
 			} else {
 				data.modelCursor = data.modelRange.end;
 			}
-		}, { priority: 'normal' } );
+		} );
 	};
 }
 
@@ -133,7 +133,7 @@ export function upcastTableCell( elementName ) {
 
 			// Continue after inserted element.
 			data.modelCursor = data.modelRange.end;
-		}, { priority: 'normal' } );
+		} );
 	};
 }