8
0
Эх сурвалжийг харах

Tests: Updated description of MT for ClassicCreator.

Aleksander Nowodzinski 9 жил өмнө
parent
commit
7d93512561

+ 0 - 2
packages/ckeditor5-editor-classic/tests/manual/classiccreator.js

@@ -45,5 +45,3 @@ function destroyEditor() {
 
 document.getElementById( 'initEditor' ).addEventListener( 'click', initEditor );
 document.getElementById( 'destroyEditor' ).addEventListener( 'click', destroyEditor );
-
-initEditor();

+ 19 - 0
packages/ckeditor5-editor-classic/tests/manual/classiccreator.md

@@ -1,3 +1,22 @@
 @bender-ui: collapsed
 
 1. Click "Init editor".
+2. Expected:
+  * Framed editor should be created.
+  * Original element should disappear.
+  * There should be a toolbar with "Bold" and "Italic" buttons.
+3. Click "Destroy editor".
+4. Expected:
+  * Editor should be destroyed.
+  * Original element should be visible.
+  * The element should contain its data (updated).
+  * The 'ck-body region' should be removed.
+
+## Notes:
+
+* You can play with:
+  * `editable.isEditable`,
+  * `boldModel.isEnabled` and `italicModel.isEnabled`.
+* Changes to `editable.isFocused/isEditable` should be logged to the console.
+* Clicks on the buttons should be logged to the console.
+