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

Tests: Focus back the editor after changing the readonly mode. Closes ckeditor/ckeditor5#840.

Piotrek Koszuliński преди 6 години
родител
ревизия
4e28493405
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      packages/ckeditor5-core/tests/manual/readonly.js

+ 2 - 0
packages/ckeditor5-core/tests/manual/readonly.js

@@ -27,6 +27,8 @@ ClassicEditor
 		button.addEventListener( 'click', () => {
 			editor.isReadOnly = !editor.isReadOnly;
 			button.textContent = editor.isReadOnly ? 'Turn off read-only mode' : 'Turn on read-only mode';
+
+			editor.editing.view.focus();
 		} );
 	} )
 	.catch( err => {