- Click "Init editor".
- Expected:
- The toolbar container should get the toolbar.
- The toolbar should appear with "Heading", "Bold", "Italic", "Undo" and "Redo" buttons.
- The yellow element should become an editable.
- Do some editing and formatting.
- Click "Destroy editor".
- Expected:
- Editor should be destroyed.
- The toolbar should disappear from the container.
- The editable must remain.
- The editable must retain the editor data.
- The
.ck-body region should be removed.
Notes:
- You can play with:
- Changes to
editable.isFocused should be logged to the console.
- Features should work.