8
0
Szymon Kupś 7 лет назад
Родитель
Сommit
f9316ceef9

+ 2 - 0
packages/ckeditor5-editor-inline/src/inlineeditor.js

@@ -7,6 +7,8 @@
  * @module editor-inline/inlineeditor
  */
 
+/* global document */
+
 import Editor from '@ckeditor/ckeditor5-core/src/editor/editor';
 import DataApiMixin from '@ckeditor/ckeditor5-core/src/editor/utils/dataapimixin';
 import ElementApiMixin from '@ckeditor/ckeditor5-core/src/editor/utils/elementapimixin';

+ 3 - 20
packages/ckeditor5-editor-inline/tests/manual/inlineeditor-data.md

@@ -1,20 +1,3 @@
-1. Click "Init editors".
-2. Expected:
-  * Two inline editor should be created.
-  * Elements used as editables should remain visible.
-    * They should preserve `.custom-class` and `custom-attr="foo"`.
-  * There should be floating toolbars with "Bold", "Italic", "Undo", "Redo", "Link" and "Unlink" buttons.
-3. Scroll the webpage.
-4. Expected:
-  * Focused editor's toolbar should float around but always stick to editable.
-  * Focused editor's toolbar should stick to the bottom of the editable if there's not enough space above.
-5. Press <kbd>Alt+F10</kbd> when focusing the editor.
-6. Expected:
-  * Toolbar should gain focus. Editable should keep its styling.
-7. Click "Destroy editors".
-8. Expected:
-  * Editors should be destroyed.
-  * Element used as editables should remain visible.
-    * They should preserve `.custom-class` and `custom-attr="foo"`.
-  * Elements should contain its data (updated).
-  * `.ck-body` regions should be removed from `<body>`.
+1. Click "Init editor".
+2. New editor instance should be appended to the document with initial data in it.
+3. After clicking "Destroy editor" all editors should be removed from the document.