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

Merge pull request #42 from ckeditor/t/ckeditor5-engine/1213

Internal: Changed API usage after engine/conversion refactoring (t/ckeditor5-engine/1213).
Piotr Jasiun преди 7 години
родител
ревизия
0c023ae059
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      packages/ckeditor5-clipboard/src/clipboard.js

+ 1 - 1
packages/ckeditor5-clipboard/src/clipboard.js

@@ -164,7 +164,7 @@ export default class Clipboard extends Plugin {
 				// Convert the pasted content to a model document fragment.
 				// Conversion is contextual, but in this case we need an "all allowed" context and for that
 				// we use the $clipboardHolder item.
-				const modelFragment = dataController.toModel( data.content, '$clipboardHolder' );
+				const modelFragment = dataController.toModel( data.content, [ '$clipboardHolder' ] );
 
 				if ( modelFragment.childCount == 0 ) {
 					return;