Toolbar overlaps Drupal toolbar

Created on 31 January 2024, 10 months ago
Updated 1 February 2024, 10 months ago

Problem/Motivation

When I load the page, scroll down to the CKeditor window, and click on the WYSIWYG, my Ckeditor5 toolbar shows up on top of the Drupal admin toolbar.

This only happens with the CKEditor5 Template plugin in my CKEditor toolbar. I also reproduced this on Simplytestme with just this module and a default drupal installation:

This problem goes away if you:
- Resize your screen
- Toggle to the sidebar view of the admin toolbar

I tried to debug a little but the js is beyond me. The best I could understand is that the "drupalViewportOffsetChange" event is triggered by both of the items above, but is not triggered when you first load the page. The top of the CKEditor toolbar is set using "editor.ui.viewportOffset" which is supposed to be at 79 but ends up being at 0 until you've triggered that drupalViewportOffsetChange event.

Steps to reproduce

On a "Standard" install of D10.2.2, enable this module and add it to your Full HTML editor.

Go to create a new article. Make your screen height small enough that your CKEditor toolbar is above the top of the viewport. Refresh the page.

Click on the CKeditor text area and scroll until the toolbar would stick to the top of the page. See it stick to the very top, not to just under the admin toolbar.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: works as designed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mariacha1

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024