Redactor toolbar disappears when reloading and scrollTop > 0
Open
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.
Steps to reproduce
- It works when you scrolled to the top (scrollTop = 0) and you reload the page, then everything works
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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