8
0
Aleksander Nowodzinski 6 жил өмнө
parent
commit
1343655839

+ 1 - 5
packages/ckeditor5-table/src/tablecellpropertiesui.js

@@ -209,11 +209,7 @@ export default class TableCellPropertiesUI extends Plugin {
 
 		const view = this.view;
 
-		view.borderWidthInput.view.element.value =
-			view.borderColorInput.view.element.value =
-			view.paddingInput.view.element.value =
-			view.backgroundInput.view.element.value = '';
-
+		view.resetFields();
 		view.set( {
 			borderWidth,
 			borderColor,

+ 7 - 0
packages/ckeditor5-table/src/ui/tablecellpropertiesview.js

@@ -233,6 +233,13 @@ export default class TableCellPropertiesView extends View {
 		this._focusCycler.focusFirst();
 	}
 
+	resetFields() {
+		this.borderWidthInput.view.element.value =
+			this.borderColorInput.view.element.value =
+			this.paddingInput.view.element.value =
+			this.backgroundInput.view.element.value = '';
+	}
+
 	/**
 	 * TODO
 	 */