Преглед на файлове

Renamed the attachPlaceholder() helper to addPlaceholder().

Aleksander Nowodzinski преди 7 години
родител
ревизия
4c6da0a96a
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      packages/ckeditor5-image/src/imagecaption/utils.js

+ 2 - 2
packages/ckeditor5-image/src/imagecaption/utils.js

@@ -7,7 +7,7 @@
  * @module image/imagecaption/utils
  * @module image/imagecaption/utils
  */
  */
 
 
-import { attachPlaceholder } from '@ckeditor/ckeditor5-engine/src/view/placeholder';
+import { addPlaceholder } from '@ckeditor/ckeditor5-engine/src/view/placeholder';
 import { toWidgetEditable } from '@ckeditor/ckeditor5-widget/src/utils';
 import { toWidgetEditable } from '@ckeditor/ckeditor5-widget/src/utils';
 
 
 const captionSymbol = Symbol( 'imageCaption' );
 const captionSymbol = Symbol( 'imageCaption' );
@@ -23,7 +23,7 @@ export function captionElementCreator( view, placeholderText ) {
 	return writer => {
 	return writer => {
 		const editable = writer.createEditableElement( 'figcaption' );
 		const editable = writer.createEditableElement( 'figcaption' );
 		writer.setCustomProperty( captionSymbol, true, editable );
 		writer.setCustomProperty( captionSymbol, true, editable );
-		attachPlaceholder( view, editable, placeholderText );
+		addPlaceholder( view, editable, placeholderText );
 
 
 		return toWidgetEditable( editable, writer );
 		return toWidgetEditable( editable, writer );
 	};
 	};