Преглед изворни кода

Added block toolbar to the manual test.

Oskar Wróbel пре 7 година
родитељ
комит
e18cce4ea5

+ 3 - 1
packages/ckeditor5-image/tests/manual/tickets/142/1.js

@@ -10,13 +10,15 @@ import Enter from '@ckeditor/ckeditor5-enter/src/enter';
 import Typing from '@ckeditor/ckeditor5-typing/src/typing';
 import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
 import Link from '@ckeditor/ckeditor5-link/src/link';
+import BlockToolbar from '@ckeditor/ckeditor5-ui/src/toolbar/block/blocktoolbar';
 import Image from '../../../../src/image';
 import ImageCaption from '../../../../src/imagecaption';
 
 ClassicEditor
 	.create( document.querySelector( '#editor' ), {
-		plugins: [ Enter, Typing, Paragraph, Link, Image, ImageCaption ],
+		plugins: [ Enter, Typing, Paragraph, Link, Image, ImageCaption, BlockToolbar ],
 		toolbar: [],
+		blockToolbar: [ 'Link' ]
 	} )
 	.then( editor => {
 		window.editor = editor;

+ 1 - 1
packages/ckeditor5-image/tests/manual/tickets/142/1.md

@@ -1,4 +1,4 @@
 ### Update the UI after image load [#142](https://github.com/ckeditor/ckeditor5-image/issues/142)
 
 1. Click **Insert image** then quickly select the link in the content (the link editing balloon should show up).
-2. Observe if the balloon remains attached to the link after replacing image source to the biggest one (replacing source is made using DOM API).
+2. Observe if the link balloon and block toolbar remains properly positioned after replacing image source to the biggest one (replacing source is made using DOM API).