craftcms / craftcms/cms

Redactor toolbar disappears when reloading and scrollTop > 0

Open
#3,078 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
3.6k
Forks
705
Avg merge
1d 5h
Merged PRs (30d)
134

Description

Description

When having a RichText field (Redactor), on some condition (see steps to reproduce), the toolbar doesn't appear. It seems that Redactors fixed toolbar hangs. But this behavior started some while ago, so maybe because of an older Redactor version or Craft version.

text
Steps to reproduce
  1. It works when you scrolled to the top (scrollTop = 0) and you reload the page, then everything works
  2. When you scroll down and reload, the browser stays at that position (scrollTop > 0) and here is where the toolbar disappears (see image above)
Additional info
  • Craft version: 2.6.3019
  • PHP version: 7.1

Contributor guide

Open the contributing guide

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.

Research direction

Reproduce the issue with a RichText field using Redactor: reload the page while scrolled so scrollTop is greater than 0, then compare it with a reload at scrollTop = 0. Trace the Redactor fixed-toolbar initialization and identify why the toolbar is absent after the scrolled reload; done means it appears reliably in both cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.