[6.x]: Esc in a fullscreen CKEditor field closes Preview instead of leaving fullscreen

Open
#651 3 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@i-just is already working on this.

Since Nov 17, 2026.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
58/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
php
Domain
frontend

Research direction

Start by tracing how the CKEditor fullscreen button handles Esc and how Craft CMS Preview handles the same key while an entry is open. Reproduce the steps with CKEditor 6.0.0-beta.1 in Chrome, then identify where the key handling conflicts. Done when the first Esc exits fullscreen while leaving Preview open, and a second Esc closes Preview.

Written by the indexing model from the issue text.

Description

bug repo:ckeditor
Steps to reproduce
  1. Add the "Fullscreen" button to a CKEditor config and use it in a field.
  2. Open an entry with that field and click "Preview".
  3. Click into the field and switch it to fullscreen.
  4. Press Esc.
Expected behavior

Esc leaves fullscreen and returns to the editor in the form. The preview stays open, and pressing Esc again closes it.

Actual behavior

The preview closes and the editor stays fullscreen on top of the page.

Version: Craft CMS 6.x-dev (aa0238c2b9), CKEditor 6.0.0-beta.1, Chrome

Dominant language
PHP
Stars
47
Forks
35
Avg merge
1d 2h
Merged PRs (30d)
25

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from craftcms/ckeditor

All issues in craftcms/ckeditor

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.