- Click "Init editors".
- 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.
- Scroll the webpage.
- 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.
- Press Alt+F10 when focusing the editor.
- Expected:
- Toolbar should gain focus. Editable should keep its styling.
- Click "Destroy editors".
- 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>.