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

Update packages/ckeditor5-image/src/autoimage.js

Co-authored-by: Maciej <jodator@jodator.net>
Paweł Kwaśnik 5 лет назад
Родитель
Сommit
b92d335faf
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      packages/ckeditor5-image/src/autoimage.js

+ 2 - 1
packages/ckeditor5-image/src/autoimage.js

@@ -139,7 +139,8 @@ export default class AutoImage extends Plugin {
 
 		// This action mustn't be executed if undo was called between pasting and auto-embedding.
 		this._timeoutId = global.window.setTimeout( () => {
-			// Don't do anything if image element cannot be inserted at the current position (#47).
+			// Don't do anything if image element cannot be inserted at the current position.
+			// See https://github.com/ckeditor/ckeditor5/issues/2763.
 			// Condition must be checked after timeout - pasting may take place on an element, replacing it. The final position matters.
 			const imageCommand = editor.commands.get( 'imageInsert' );