8
0
فهرست منبع

Other: Rename AttributeElement conversion helpers.

Maciej Gołaszewski 8 سال پیش
والد
کامیت
bcc637e68c
1فایلهای تغییر یافته به همراه6 افزوده شده و 3 حذف شده
  1. 6 3
      packages/ckeditor5-font/src/fontsize/fontsizeediting.js

+ 6 - 3
packages/ckeditor5-font/src/fontsize/fontsizeediting.js

@@ -8,7 +8,10 @@
  */
 
 import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
-import { modelAttributeToView, viewToModelAttribute } from '@ckeditor/ckeditor5-engine/src/conversion/attributeconverters';
+import {
+	attributeElementToViewConverter,
+	viewToAttributeElementConverter
+} from '@ckeditor/ckeditor5-engine/src/conversion/attributeelementconverters';
 
 /**
  * The Font Size Editing feature.
@@ -39,10 +42,10 @@ export default class FontSizeEditing extends Plugin {
 
 		for ( const item of this.configuredItems ) {
 			// Covert view to model.
-			viewToModelAttribute( 'fontSize', item, [ data.viewToModel ] );
+			viewToAttributeElementConverter( 'fontSize', item, [ data.viewToModel ] );
 
 			// Covert model to view.
-			modelAttributeToView( 'fontSize', item, [ data.modelToView, editing.modelToView ] );
+			attributeElementToViewConverter( 'fontSize', item, [ data.modelToView, editing.modelToView ] );
 
 			// Add command.
 		}